docker-compose-stop: add page (#23131)

This commit is contained in:
Harshavardhan
2026-07-11 23:21:56 +05:30
committed by GitHub
parent 7f602908c0
commit 7ec9a5d8a9
+28
View File
@@ -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 ...}}`