mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 21:02:08 +02:00

add "--rmi all --volumes" parameters to docker-compose down command, in order to match with description (by default, docker-compose didn't remove volumes).
32 lines
748 B
Markdown
32 lines
748 B
Markdown
# docker-compose
|
|
|
|
> Run and manage multi container docker applications.
|
|
> More information: <https://docs.docker.com/compose/reference/overview/>.
|
|
|
|
- List all running containers:
|
|
|
|
`docker-compose ps`
|
|
|
|
- Create and start all containers in the background using a `docker-compose.yml` file from the current directory:
|
|
|
|
`docker-compose up -d`
|
|
|
|
- Start all containers, rebuild if necessary:
|
|
|
|
`docker-compose up --build`
|
|
|
|
- Start all containers using an alternate compose file:
|
|
|
|
`docker-compose --file {{path/to/file}} up`
|
|
|
|
- Stop all running containers:
|
|
|
|
`docker-compose stop`
|
|
|
|
- Stop and remove all containers, networks, images, and volumes:
|
|
|
|
`docker-compose down --rmi all --volumes`
|
|
|
|
- Follow logs for all containers:
|
|
|
|
`docker-compose logs --follow`
|