mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
docker-compose-stop: add page (#23131)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# docker compose stop
|
||||
|
||||
> Stop running containers without removing them.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/compose/stop>.
|
||||
|
||||
- Stop all running services:
|
||||
|
||||
`docker compose stop`
|
||||
|
||||
- Stop specific services:
|
||||
|
||||
`docker compose stop {{service_1 service_2 ...}}`
|
||||
|
||||
- Stop with a custom shutdown timeout in seconds:
|
||||
|
||||
`docker compose stop {{[-t|--timeout]}} {{seconds}}`
|
||||
|
||||
- Stop services defined in a specific compose file:
|
||||
|
||||
`docker compose {{[-f|--file]}} {{path/to/compose_file}} stop`
|
||||
|
||||
- Dry run (show operations without executing):
|
||||
|
||||
`docker compose stop --dry-run`
|
||||
|
||||
- Stop specific services with a custom timeout:
|
||||
|
||||
`docker compose stop {{[-t|--timeout]}} {{seconds}} {{service_1 service_2 ...}}`
|
||||
Reference in New Issue
Block a user