1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/common/docker-compose.md
Kumamoto f9bad725de
docker-system, docker-compose: add Japanese translation, update page (#9828)
* docker-system: add Japanese translation

* docker-compose: add Japanese translation

* Update pages.ja/common/docker-compose.md: add a note that the container is running

* Update pages/common/docker-compose.md: exchange short option for long one

* Update pages.ja/common/docker-compose.md: exchange short option for long one

* docker-compose: update command to long flag

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-02-08 21:01:15 +05:30

36 lines
837 B
Markdown

# docker compose
> Run and manage multi container docker applications.
> More information: <https://docs.docker.com/compose/reference/>.
- 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 --detach`
- 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`
- Follow logs for a specific container:
`docker compose logs --follow {{container_name}}`