Search typeSearch syntax
tags[tag]
exact"words here"
authoruser:1234
user:me (yours)
scorescore:3 (3+)
score:0 (none)
answersanswers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
viewsviews:250
sectionstitle:apples
body:"apples oranges"
urlurl:"*.example.com"
favoritesinfavorites:mine
infavorites:1234
statusclosed:yes
duplicate:no
migrated:no
wiki:no
typesis:question
is:answer
exclude-[tag]
-apples
For more details on advanced search visit our help page
results found tagged with search options answers only user 2449905

Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

45 results
relevancenewest

Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

42
votes
image vs. containerFirst, let me clarify some terminology.image: A static, immutable object. This is the thing you build when you run docker build using a Dockerfile. An image is not a thing that …
answered Jan 12 '17 by Dan Lowe
14
votes
If you use bash as the command, but without a terminal, it will exit immediately. This is because when bash starts up, if there is no terminal attached, and it has no script or other command to execut …
answered Mar 4 '17 by Dan Lowe
28
votes
docker-compose run creates new containersYou have already noticed the problem. When you use docker-compose run, a new container is created.When you ran the first command (makemigrations), a new co …
answered Jan 3 '17 by Dan Lowe
11
votes
Finding the volumesVolumes like this are internal to Docker and stored in the Docker store (which is usually all under /var/lib/docker). You can get a list of volumes:$ docker volume lsDRIVER …
answered Jul 24 '17 by Dan Lowe
27
votes
What you want to do is use a volume, and then mount that volume into whatever containers you want it to appear in.Completely within DockerYou can do this completely inside of Docker.Here is an e …
answered Apr 22 '17 by Dan Lowe
7
votes
You can use docker-compose pull to fetch images. Then if they are present already, Compose will not try to build them again.To be really sure to avoid rebuilds, you can use --no-build.docker-compo …
answered Apr 11 '17 by Dan Lowe
1
vote
I think you may be conflating two things here.The --rm flagThis exists to clean up after a container is finished, so it doesn't hang around in the dead containers pool. As you already found, it is …
answered Jan 15 '17 by Dan Lowe
16
votes
The image does contain those filesThe Dockerfile contains instructions on how to build an image. The image you built from that Dockerfile does contain index.html and images/.But, you over-rode the …
answered Feb 22 '17 by Dan Lowe
2
votes
If you search Docker Hub for tomcat8_rajarshidd, you can find its page, then click the tags tab to view available tags.At the time of this writing, the only available tag is 2. As the error told you …
answered Jan 21 '17 by Dan Lowe
1
vote
volumes_from imports volumes from another containerBy default, each container has no volumes. You can define local volumes using the volumes attribute, but the volumes are only used in that containe …
answered Nov 21 '16 by Dan Lowe
0
votes
Per your screenshot, you have a backups directory on your Windows system. It seems to be at the same level as the directory you are sitting in at the point you run your docker exec command (based on t …
answered Jul 18 '17 by Dan Lowe
10
votes
You are doing this during your build:RUN touch /var/log/node.log && /node --help 2>&1 > /var/log/node.logThe file /var/log/node.log is created and fixed immutably into the resulting image.…
answered Jan 1 '17 by Dan Lowe
7
votes
The healthcheck option was added in docker-compose file format 2.1. If you are using version 2 or version 1, it will not be available. The format version is typically on the first line of docker-compo …
answered Mar 12 '17 by Dan Lowe
9
votes
If you have docker-compose create the network, it will determine the name itself. Normally, it looks at the name of the directory where docker-compose.yml is located, and uses that as a prefix. Based …
answered Mar 12 '17 by Dan Lowe
5
votes
Docker won't do anything here. It just signals PID 1. If PID 1 has children, it is expected to handle signaling them. This is the standard unix model.For some more info you can read Docker and the P …
answered Apr 21 '17 by Dan Lowe
10
votes
One simple way is to bind the MySQL port only to the localhost address. That assumes the host has a mysql client available outside of Docker.ports:- 127.0.0.1:3306:3306You could also omit the …
answered Feb 12 '17 by Dan Lowe
6
votes
I built the initial part of your image two different ways to test this. A common answer to this question is that the package index takes up extra space. In the case of Alpine Linux (using APK), you ca …
answered Dec 26 '16 by Dan Lowe
6
votes
During your image build, you install some things into /usr/src/app, and then you set it as the working directory. Here are the lines from Dockerfile where that happens:RUN mkdir -p /usr/srcRUN mkdi …
answered Nov 27 '17 by Dan Lowe
2
votes
You can find the available tags for minio/minio on that repository's tag page.If you have the image you want already downloaded on any of your systems, you can push it to Docker Hub yourself, then p …
answered Jan 3 '17 by Dan Lowe
2
votes
You have a build parameter in your docker-compose.yml.Even if you didn't ask docker-compose to do a build, it still checks that the referred-to build directories (if any) defined in the file are the …
answered Dec 22 '16 by Dan Lowe
0
votes
CMD "/opt/<redacted>/start.sh; sleep infinity"This is telling Docker to find and run this executable file:/opt/<redacted>/start.sh; sleep infinityBut that path does not exist as a file, so it …
answered Jul 21 '17 by Dan Lowe
2
votes
AssumptionsIf I am reading what you've done here correctly, my answer assumes the following two things.You are using docker-compose to run the database container.You are using plain docker comma …
answered Dec 25 '16 by Dan Lowe
3
votes
TL;DR: The permission problem is being introduced during composer update. Possibly during one of the scripts (a list of which can be found in composer.json).I started from scratch on a VM with your …
answered Jan 15 '17 by Dan Lowe
1
vote
You probably don't need to specify portsIf you don't need the ports on the API servers to be responsive outside of Docker, there is no need to specify ports at all. The EXPOSE statement in the image …
answered Nov 20 '16 by Dan Lowe
1
vote
You have this in your php-fpm Dockerfile:VOLUME ["/data/www", "/etc/httpd"]And this in docker-compose.yml:httpd:build: docker/httpdports:- "8080:80"volumes_from:…
answered Feb 2 '17 by Dan Lowe
1
vote
docker-compose start will start an existing, stopped container. An existing container will already have the command baked in, and you can't change it.What you want to do is use docker-compose up. Th …
answered Apr 5 '17 by Dan Lowe
0
votes
The mysql container is exposing port 3306 (as seen in your port mapping, which connects external port 6603 to the exposed container port 3306).ports:- "6603:3306"We know that is correct, becau …
answered Feb 26 '17 by Dan Lowe
2
votes
There are two ways you can do this.By handYou can enter the container and do it yourself. Downside: not automated.$ docker-compose exec myapp bash2912d2cd9eab# pip3 install -r /home/app/require …
answered Dec 29 '16 by Dan Lowe
1
vote
You could use native DockerOne option is to abandon docker-machine and use a native Docker setup on your system. Since you are on Linux (Xubuntu), this is an option for you. docker-machine is most o …
answered Jan 1 '17 by Dan Lowe
1
vote
As others have noted, the difference is in how you specify the volume paths. But so far nobody has explained why, even though you specified the volumes "incorrectly" in docker run, Docker accepted the …
answered Jan 12 '17 by Dan Lowe

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,