docker-compose

Running public & private images on azure web service authentication issue

蓝咒 提交于 2019-12-11 14:40:54
问题 When running a mixture of private container registry images from the azure container registry and also a public image from docker.io "docker:latest" but am getting an authentication issue on the docker.io Docker compose file image: docker:latest the issue is I only have the option to log in to one of them on the azure portal, is there a way to login into both ? or am I meant to create a new docker file in the development project which will pull and store the image on my azure container

`docker stack` specific log locations

醉酒当歌 提交于 2019-12-11 14:39:58
问题 Is there a way to specify logging file on a deployed docker stack with docker-compose.yml file? I've been suffering from intermittent crashes on docker services and stacks running on a docker swarm that leave no log trace behind, and I need some rotating logs that I can look at when these happen my docker info output: $ docker info Containers: 114 Running: 4 Paused: 0 Stopped: 110 Images: 95 Server Version: 17.09.0-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true

I got problem while using Nginx to direct requests to services defined in docker-compose.yml

天涯浪子 提交于 2019-12-11 14:17:40
问题 I'm setting up an app with multiple containers, and use nginx to redirect requests to correct container. However, I got stuck with the 502 Bad Gateway error. Actually, the code is from a course on Udemy: Docker and Kubernetes. I just copy and paste the code, it ran on instructor machine, but not mine. I tried on my windows and my macbook, restart docker, but still no hope. I looked for solutions on other stackoverflow posts, some other articles, but none of them tell me why it works on others

cat EOF issues with indentation [duplicate]

江枫思渺然 提交于 2019-12-11 14:17:22
问题 This question already has answers here : here-document gives 'unexpected end of file' error (5 answers) Multi-line string with extra space (preserved indentation) (7 answers) Closed 8 months ago . NOTE: If anyone feel this question has been answered before please paste your answer below otherwise please don't interfere with people trying to help someone who needs help. Thanks I am not sure why it is such an hassle trying to cat content to file when the content is indented Can anyone point to

docker-compose: declare an alias for a non-docker server name

余生长醉 提交于 2019-12-11 14:14:20
问题 I defined a container in a docker-compose file. I want to access a non-docker server name (say database.xyz) inside the container as the dns name mydb. How to define that in the compose file? 回答1: You can add an extra_hosts section: extra_hosts: - "somehost:162.242.195.82" - "otherhost:50.31.209.229" Documentation on this can be found at: https://docs.docker.com/compose/compose-file/#extra_hosts 回答2: You can use aliases. Here is the example. version: '3.4' networks: user_network: driver:

Flush Flower database occasionally and/or exit gracefully from Docker?

家住魔仙堡 提交于 2019-12-11 13:55:49
问题 I'm running Celery Flower in Docker (see this question for details). The command ends up being: celery -A proj flower --persistent=True --db=/flower/flower I've got a persistent volume all set up on /flower . However, it looks like Flower never writes anything to its database file, even after 30 minutes of uptime (during which ~120 tasks were processed): -rw-r--r-- 1 user user 0 Mar 11 00:08 flower.bak -rw-r--r-- 1 user user 0 Mar 10 23:29 flower.dat -rw-r--r-- 1 user user 0 Mar 11 00:08

docker-compose - No such service via Vagrant-Windows shells only

大城市里の小女人 提交于 2019-12-11 13:39:16
问题 I am running into an issue with Vagrant/Docker-Compose that seems to be specific to Windows. Here's an overview of the setup and orchestration: Vagrant using a boot2docker box Several docker containers running inside of boot2docker VM Vagrantfile that runs several shell scripts Inside of those shell scripts, I run commands that call out from the boot2docker VM to it's child Docker containers. An example of those commands look like: docker exec -i $(docker-compose ps -q $DOCKER_DBSVC) /bin

How to run multiple applications with single mongodb using docker

与世无争的帅哥 提交于 2019-12-11 12:45:51
问题 I want to be able to run two separate apps in two containers - one for each independent app. Then both apps should be able to communicate with the 3rd container which will hold MongoDB. Folder structure on my local machine /Users/me/Dev: Dockerfile, docker-compose.yml /Users/me/Dev/App1: with source code and package.json for app1 /Users/me/Dev/App2: with source code and package.json for app2 /Users/me/Dev/data/db: I wanna keep datafile for Mongo dockerfile - but honestly it does not look

Error when running psql command in /docker-entrypoint-initdb.d/db_init.sh (psql: could not connect to server: Connection refused)

眉间皱痕 提交于 2019-12-11 12:43:09
问题 I used to use a script ( /docker-entrypoint-initdb.d/db_init.sh ) to loop through database dumps in a folder copied into the postgres container and restoring them. It used to work nicely but recently it stopped working. I get following error: postgres_server_1 | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/db_init.sh postgres_server_1 | --> db_init.sh: Found /dumps/dataset_1.dump as dataset_1 postgres_server_1 | psql: could not connect to server: Connection refused

Can I pass arguments into docker-compose the command config option

天涯浪子 提交于 2019-12-11 12:21:58
问题 Anyone know how I can use the command: option in docker-compose to run my command with arguments? I know version 2 offers arguments, but that works with docker-engine 1.10.x I am on docker-engine 1.6.2 and cannot upgrade at the moment. I want to do something like this in docker-compose: ... rstudio: image: rocker-hadleyverse command: -d -p 8787:8787 -e USER=<username> -e PASSWORD=<password> rocker-hadleyverse links: - db ... 回答1: Please (re)read the docker-compose docs, in docker-compose.yml