docker-compose

Can't resolve hostnames between docker containers

人走茶凉 提交于 2019-12-10 19:44:11
问题 I have two containers created in separate compose files (done for application isolation -- each application may have multiple containers defined in the compose file such as a backing database). These containers are linked via an external network named "common". An example compose file would be: version: '2' services: rabbitmq: image: "rabbitmq:3-management" hostname: "rabbitmq" container_name: "rabbitmq" environment: RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG" RABBITMQ_DEFAULT_USER:

Create SQL Server database from a script in docker

妖精的绣舞 提交于 2019-12-10 19:44:06
问题 Simple question I hope. I cannot find anything anywhere. How do you create a database in a Microsoft SQL Server Docker container? Dockerfile : I am looking at the following Dockerfile : FROM microsoft/mssql-server-windows-developer:latest ENV sa_password ab873jouehxaAGR WORKDIR / COPY /db-scripts/create-db.sql . # here be the existing run commnd in the image microsoft/mssql-server-windows-developer:latest #CMD ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference =

local files missing from docker-machine container

本小妞迷上赌 提交于 2019-12-10 19:19:50
问题 So I have a simple containerised django project, with another container for sass css compilation. I use docker-compose with a docker-machine, but when I fire it up, the web container doesn't have any of my local files (manage.py etc) in, so it dies with a file not found: manage.py error. Let me explain more: docker-compose.yml web: build: . volumes: - .:/app ports: - "8001:5000" sass: image: ubuntudesign/sass command: sass --debug-info --watch /app/static/css -E "UTF-8" volumes: - .:/app

Jenkins and docker-compose

橙三吉。 提交于 2019-12-10 18:47:22
问题 I'm trying to use docker-compose on a jenkins build. But I get : docker-compose: not found How I have to do for install docker-compose ? It's a plugin, or I have to modify the docker image of jenkins ? I use jenkins:1.642.4 回答1: You need to install docker-compose first. This is the command: curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose btw, this is the documentation: https://docs.docker.com/compose

Permissions issue with Docker volumes

核能气质少年 提交于 2019-12-10 18:47:21
问题 I want to start using Docker for my Rails development, so I'm trying to put together a skeleton I can use for all my apps. However, I've run into an issue with Docker volumes and permissions. I want to bind-mount the app's directory into the container, so that any changes get propagated to the container without the need to re-build it. But if I define it as a volume in my docker-compose.yml , I can't chown the directory anymore. I need the directory and all its contents to be owned by the app

Redirect AWS sdks' default endpoint to mocked localstack endpoints

爱⌒轻易说出口 提交于 2019-12-10 17:57:17
问题 I have multiple Java spring boot services (around 20 of them) using Amazon SDKs for S3, SQS, DynamoDB, etc.. Currently, to use Amazon Web Service I only need to specify my AWS key & secret. ACCESS_AWS_KEY=<MY_KEY> ACCESS_AWS_SECRET=<MY_SECRET> However, I wanted to setup offline dev enviroment so I started to dockerize my services and set up a single multi-docker container with all my services dockerized and localstack should be used instead of remote AWS service to allow complete offline

fabcar example: fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f84bc4ea259]

不想你离开。 提交于 2019-12-10 17:56:35
问题 Env: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic $ go version go version go1.12 linux/amd64 $ docker -v Docker version 18.09.4, build d14af54266 $ docker-compose -v docker-compose version 1.24.0, build 0aa59064 Getting started with hyperledger-fabric following the fabcar tutorial on docs. In step - Launch the network - executing the start script ./startFabric.sh javascript I get following output: # don't

docker ps - show image ID instead of name

这一生的挚爱 提交于 2019-12-10 17:56:18
问题 I display running containers using docker ps command. There is an IMAGE column that shows name of the image that each container was created from. However in the meantime (while containers were running) I have rebuilt some images. The new images have the same names but different ID s. Now I'd like to check from which image specific container was run. I cannot deduce this information using only image name . I need image ID . Is there any possibility to display ID of the image that was used to

Changing top level routes for multiple Angular apps served from single nginx server?

断了今生、忘了曾经 提交于 2019-12-10 17:55:58
问题 My current configuration is as follows: I have two separate Angular apps on different Docker containers running on different ports, for example, 4200 and 4201. I access them both directly through their ports: www.myserver.com:4200 and www.myserver.com:4201. They are created using the following docker-compose config file: version: '3.6' services: app1: build: context: ../app1 dockerfile: Dockerfile command: bash -c "ng serve --host 0.0.0.0 --port 4200" ports: - "4200:4200" app2: build: context

Unable to connect to SQL Server from a docker container

落爺英雄遲暮 提交于 2019-12-10 17:52:34
问题 We have an ASP.NET Core 2.2 application that worked with its backend database hosted on a separate server perfectly. All CRUD operations worked flawlessly. We dockerized the application but we started getting the following error message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.