docker-compose-stop
Stop running containers without removing them. tldr-pages
On several platforms
Several platforms
Stop all running services
docker compose stopIdentifyStop specific services
docker compose stop service_1 service_2 ...IdentifyStop with a custom shutdown timeout in seconds
docker compose stop --timeout secondsIdentify--timeoutSpecify a shutdown timeout in seconds Docker Compose referenceStop services defined in a specific compose file
docker compose --file path/to/compose_file stopIdentify--fileCompose configuration files Docker Compose referenceSimulate running the operations without executing
docker compose stop --dry-runIdentify--dry-runExecute command in dry run mode Docker Compose referenceStop specific services with a custom timeout
docker compose stop --timeout seconds service_1 service_2 ...Identify--timeoutSpecify a shutdown timeout in seconds Docker Compose reference