32,398 questions
9
votes
3
answers
8k
views
How can I send command line options to my dockerized program that I start with "docker-compose up"?
I am trying to use docker-compose up the way you can use docker run [APP_CONTAINER_NAME] [APP_OPTIONS].
43
votes
9
answers
35k
views
docker-compose up leads to "client and server don't have same version (client : 1.14, server: 1.12)" error but client and server have the same version
docker version prints:
Client version: 1.0.1
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 990021a
Server version: 1.0.1
Server API version: 1.12
Go version (server): go1....
5
votes
2
answers
519
views
How to connect docker containers in separate deployments on the same host machine using docker-compose?
I'm having hard time figuring out how to interconnect containers which belong to different docker-compose projects running on the same host.
Let's say, I'm having a set of containers in Deployment A:
...
0
votes
1
answer
722
views
Docker Compose: initialize / customize images from hub on the fly & run
I am new to docker compose and can’t figure out how to customize my images from private/public docker hub, before it starts with compose.
The final purpose is to have standard images on hub, which ...
0
votes
1
answer
750
views
container monitoring not enabled by default
We would like to monitor docker container metrics parameters like CPU, network, memory etc. we are following https://docs.docker.com/articles/runmetrics/ and found that monitoring metrics is not ...
1
vote
2
answers
2k
views
Docker Compose: Exposing Environment Variables to linked service
I'm playing around with Docker Compose to make a container running a Rails App with a Oracle backend.
Dockerfile and docker-compose.yml
This works great until my Docker container tries to install ...
123
votes
10
answers
103k
views
Using docker-compose with CI - how to deal with exit codes and daemonized linked containers?
Right now our Jenkins agents generate a docker-compose.yml for each of our Rails projects and then run docker-compose up. The docker-compose.yml has a main "web" container that has rbenv and all of ...
6
votes
3
answers
5k
views
how to ignore some container when i run `docker-compose rm`
I have four containers that was node ,redis, mysql, and data. when i run docker-compose rm,it will remove all of my container that include the container data.my data of mysql is in the the container ...
2
votes
0
answers
143
views
boot2docker: port forwording to manage spark workers through web UI on Mac OS
I installed boot2docker on my Mac and I use docker-compose to create a spark cluster.
Everething works fine: i run boot2docker and I create 1 spark master node and 3 spark worker node.
I connect to ...
1
vote
1
answer
2k
views
Specify environment on start of component
We are having docker based build and deployment and below mentioned is our docker-compose.yml file.
web:
image: stage.example.com/logcomponent:latest
ports:
- "80"
environment:
NODE_ENV:...
5
votes
1
answer
10k
views
Docker-compose Adding Postgres Password
I'm having issues accessing my postgres db from my remote machine. I'm running docker-compose (django and postgres) from a digitalOcean droplet, so I need to be able to access the db from my mac.
I ...
3
votes
3
answers
4k
views
is there a way to obtain ip of linked container using link alias?
I have two containers one link to another. As the following...
docker run -i -t --name container1 ubuntu:trusty
docker run -i -t --name container2 --link container1:aliasc1 ubuntu:trusty /bin/bash
...
4
votes
3
answers
12k
views
How to set/get the project name in docker-compose.yml
I'm trying to either set a docker-compose project name, or to be able to reference it within my config file. Is any of these possible?
The reason I'm asking is that I'm following this tutorial so I ...
0
votes
1
answer
2k
views
Docker-compose not attaching redis: redis does not start
I have an issue with my docker-compose configuration that I cannot pinpoint: redis won't start.
My docker-compose.yml:
web:
build: ./web
links:
- db
- redis
ports:
- "8080:8080"
db:
...
1
vote
0
answers
868
views
How to handle shell expansion in docker-compose when setting env variables
Is there an equivalent mechanism in docker-compose to do something like the following:
# Pass Env variable based on some expression
ENV_VAR=`some bash expression`
docker run -d -e "MY_ENV_VAR=${...
33
votes
5
answers
36k
views
how to link docker container to each other with docker-compose
I have to setup a mongo replica set with docker-compose. For the replica set the containers have to know each other.
I tried in docker-compose.yml
dbreplicasetpart1:
image: mongo:2.6.8
...
1
vote
2
answers
537
views
Docker compose environment and paths
I am trying to create local development environment using Docker Compose. I started using this example https://github.com/b00giZm/docker-compose-nodejs-examples/tree/master/03-express-gulp-watch and ...
0
votes
0
answers
242
views
Docker link container
Im am using docker compose to run 2 containers (both centos based). This is my yml:
front:
build: front/docker/java
ports:
- "8080:8080"
links:
- back:db
back:
build: back/docker/java
...
0
votes
1
answer
639
views
RUnit does not stop docker-compose's containers
I would like to have a RUnit service to supervise a set of containers launched by docker-compose tool, here's my the runit script:
In /etc/sv/app/run
#!/bin/bash
exec 2>&1
APP_HOME=/home/...
142
votes
3
answers
158k
views
Validating docker-compose yml file
Is there any easy way to verify the syntax, etc of a docker-compose file (docker-compose.yml aka fig.yml) without having to run docker proper?
I am trying to add a quick check to my build / test ...
256
votes
34
answers
360k
views
Can't connect to docker from docker-compose
I installed docker-machine 0.1.0 and docker-compose 1.1.0 on Mac OS 10.8.5.Docker-machine is running normally and able to connect by docker-machine ssh.
$ docker-machine ls
NAME ACTIVE DRIVER ...
219
votes
3
answers
506k
views
Using --add-host or extra_hosts with docker-compose
I am using docker-compose to run a test environment, that consists of about 5 different containers. The inter-container links and the shared volumes (volumes-from) works wonderfully. I also expose ...
92
votes
7
answers
172k
views
Using the host ip in docker-compose
I want to create a docker-compose file that is able to run on different servers.
For that I have to be able to specify the host-ip or hostname of the server (where all the containers are running) in ...
7
votes
2
answers
6k
views
Docker Compose does not bind ports
I have the following Dockerfile for my container:
FROM centos:centos7
# Install software
RUN yum -y update && yum clean all
RUN yum install -y tar gzip wget && ...