Back to Docker

docker compose kill

_vendor/github.com/docker/compose/v5/docs/reference/compose_kill.md

18.09-release984 B
Original Source

docker compose kill

<!---MARKER_GEN_START-->

Forces running containers to stop by sending a SIGKILL signal. Optionally the signal can be passed, for example:

console
$ docker compose kill -s SIGINT

Options

NameTypeDefaultDescription
--dry-runboolExecute command in dry run mode
--remove-orphansboolRemove containers for services not defined in the Compose file
-s, --signalstringSIGKILLSIGNAL to send to the container
<!---MARKER_GEN_END-->

Description

Forces running containers to stop by sending a SIGKILL signal. Optionally the signal can be passed, for example:

console
$ docker compose kill -s SIGINT