Docker compose

Docker is a great tool but for complex applications with a lot of components, orchestrating all the containers to start up and shut down together (not to mention talk to each other) can quickly become difficult.

Docker Compose makes dealing with the orchestration processes of Docker containers (such as starting up, shutting down, and setting up intracontainer linking and volumes) really easy.

Installing Docker Compose

Running a Container with Docker Compose


While still in the ~/hello-world directory, execute the following command to create the container:

To show the group of Docker containers (both stopped and currently running), use the following command:

To stop all running Docker containers for an application group, run the following command in the same directory as the docker-compose.yml file used to start the Docker group:

If you want to start from scratch you can use the rm command to fully delete all the containers that make up your container group:

Additional links: