docker-compose

Dotnet restore Docker fail

时间秒杀一切 提交于 2021-01-29 09:05:36
问题 There is problem with Docker and command dotnet restore. I have the docker file: FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /src COPY ["AuthAPI/AuthAPI.csproj", "AuthAPI/"] COPY ["CommonCoreLibrary/CommonCoreLibrary.csproj", "CommonCoreLibrary/"] RUN dotnet restore "AuthAPI/AuthAPI.csproj" COPY . . WORKDIR "/src/AuthAPI" RUN dotnet build "AuthAPI.csproj" -c Release -o

Docker Compose - Redis container refusing connection to Node container

雨燕双飞 提交于 2021-01-29 09:02:24
问题 No matter what I try I can't seem to get my node app to connect to redis between containers within the same docker-compose yml config. I've seen a lot of similar questions but none of the answers seem to work. I'm using official images in both cases, not building my own I am putting "redis" as my host and setting it as hostname in my docker compose YML config const client = redis.createClient({ host: "redis" }); in my redis.conf I am using bind 0.0.0.0 This what the console is printing out:

react - docker host not found in upstream

流过昼夜 提交于 2021-01-29 08:49:18
问题 I released my reactJs application. I have code information as below. But I get the error "11 # 11: host not found in upstream". where could i have made a mistake Could you help ? I get an upStream error even though my docker, nginx, and docker-compose file is correct. I had run the same codes before but I could not find where I made changes. default.conf ` upstream frontend_server{ server web:3000; } server{ listen 80; resolver 127.0.0.11; location /.well-known/acme-challenge/ { root /var/www

TestNG docker-compose can not find localhost url

为君一笑 提交于 2021-01-29 08:40:49
问题 I have this docker-compose configuration version: '3' services: selenoid: image: "aerokube/selenoid:latest" container_name: selenoid ports: - "0.0.0.0:4444:4444" networks: - selenoid volumes: - ".:/etc/selenoid" - "./target:/output" - "/var/run/docker.sock:/var/run/docker.sock" - "./target:/opt/selenoid/video" environment: - "OVERRIDE_VIDEO_OUTPUT_DIR=$PWD/target" command: ["-limit", "10", "-conf", "/etc/selenoid/browsers.json", "-video-output-dir", "/opt/selenoid/video", "-container-network"

Active Directory Docker - Windows Authentication Mode

怎甘沉沦 提交于 2021-01-29 07:34:37
问题 How to connect from windows docker container to Azure Active Directory? My problem: I have to connect to Database (in some server) which take only access as a Windows Authentication Mode but my container is not in domain. 回答1: You need to configure gMSA (group managed service account) for that. Please follow the below guides in sequence: Create gMSAs for Windows containers Configure your app to use a gMSA Run a container with a gMSA Orchestrate containers with a gMSA 来源: https://stackoverflow

Hello world with gitlab ce docker container running on local ubuntu

不想你离开。 提交于 2021-01-29 06:43:50
问题 I would like to run the docker image for gitlab community edition locally on my ubuntu laptop. I am following this tutorial. Currently there i already another app running on localhost so I changed the ports in docker -compose. What I currently have: I'm in a directory I created called 'gitlab_test'. I have set a global variable per the instructions echo $GITLAB_HOME /srv/gitlab . I pulled the ce gitlab image docker pull store/gitlab/gitlab-ce:11.10.4-ce.0 Then, in the gitlab_test directory I

Call to API from Angular in Nginx does not resolve Docker service name

南楼画角 提交于 2021-01-29 05:30:15
问题 I have an Angular app running in a NginX Docker container. The Angular app can make a REST call to another container ( Spring Boot API Docker ) using localhost as server. server: string = 'localhost'; return this.httpClient.post<MyClass[]>('http://' + this.server + ':6060/files-data/list-files', request); But REST call fails when using Docker service name instead. server: string = 'files-service'; return this.httpClient.post<MyClass[]>('http://' + this.server + ':8080/files-data/list-files',

Why a service configured with only `expose` is able to communicate with internet?

社会主义新天地 提交于 2021-01-29 05:22:58
问题 Something confuse me about docker networking. I've a docker-compose.yml file which can be simplified like this: version: '3.8' services: foo: ... networks: - main_network ports: - "3000:3000" bar: ... networks: - main_network expose: - "5000" networks: main_network: According to this answer, expose ... Expose ports without publishing them to the host machine - they’ll only be accessible to linked services. Only the internal port can be specified. If this is true, bar should only expose the

How do I link and scale multiple docker containers?

耗尽温柔 提交于 2021-01-29 03:20:13
问题 I would like to use Selenium Grid's Docker images to execute tests in parallel. In order to do so, I wish to dispatch each test suite to a different browser node. Each node would have to be paired up with its own dockerized server so that the tests may run. So my question is what is the best way to link the container pairs? Is there a way to easily scale the server-node pairs, perhaps with Docker Compose? I am pretty new to all of this, so apologies if what I am trying to achieve isn't very

Dockerfile can't build app with Maven - No goals specified for this build

北战南征 提交于 2021-01-29 02:30:20
问题 I'm developing a Spring Boot app with several data services, but I'm struggling to get it working as a containerized application. This is the project folder structure: myapp/ ├── src/ │ └── ... ├── docker-compose.yml ├── Dockerfile ├── init-mongo.js └── pom.xml And this is the Dockerfile content I came up with after reading tutorials and official documentation: # # Build stage # FROM maven:3.5-jdk-8 AS build COPY init-mongo.js /docker-entrypoint-initdb.d/ COPY src /app/src/ COPY pom.xml /app/