mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 04:17:58 +01:00
docker-compose: add page (#1460)
This commit is contained in:
parent
d894e77b83
commit
ed81078a21
1 changed files with 27 additions and 0 deletions
27
pages/common/docker-compose.md
Normal file
27
pages/common/docker-compose.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# docker-compose
|
||||
|
||||
> Run and manage multi container docker applications.
|
||||
|
||||
- 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`
|
||||
|
||||
- Follow logs for all containers:
|
||||
|
||||
`docker-compose logs --follow`
|
Loading…
Reference in a new issue