compose/docs/reference/compose_stop.md
robbert-ef 68bd0eb523
cli: fix timeout behavior on up / restart / stop (#10672)
Do not set a hardcoded default timeout of 10 seconds when restarting / stopping but use the container `StopTimeout` (defaults to 10 seconds).

Also fixed custom timeout not used when invoking `up`.

Signed-off-by: Robbert Segeren <robbert.segeren@easyflex.nl>
2023-06-12 09:18:25 -04:00

541 B

docker compose stop

Stop services

Options

Name Type Default Description
--dry-run Execute command in dry run mode
-t, --timeout int 0 Specify a shutdown timeout in seconds

Description

Stops running containers without removing them. They can be started again with docker compose start.