2021-03-08 15:47:24 +01:00
|
|
|
command: docker compose kill
|
|
|
|
short: Force stop service containers.
|
2021-03-11 16:20:30 +01:00
|
|
|
long: |-
|
2022-07-26 14:58:08 +02:00
|
|
|
Forces running containers to stop by sending a `SIGKILL` signal. Optionally the signal can be passed, for example:
|
2021-03-11 16:20:30 +01:00
|
|
|
|
2022-07-26 14:58:08 +02:00
|
|
|
```console
|
|
|
|
$ docker-compose kill -s SIGINT
|
|
|
|
```
|
2022-08-02 13:11:57 +02:00
|
|
|
usage: docker compose kill [OPTIONS] [SERVICE...]
|
2021-03-08 15:47:24 +01:00
|
|
|
pname: docker compose
|
|
|
|
plink: docker_compose.yaml
|
|
|
|
options:
|
2022-08-19 04:29:51 +02:00
|
|
|
- option: remove-orphans
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Remove containers for services not defined in the Compose file.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2022-07-26 14:58:08 +02:00
|
|
|
- option: signal
|
|
|
|
shorthand: s
|
|
|
|
value_type: string
|
|
|
|
default_value: SIGKILL
|
|
|
|
description: SIGNAL to send to the container.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2023-05-05 12:43:27 +02:00
|
|
|
inherited_options:
|
|
|
|
- option: dry-run
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Execute command in dry run mode
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2021-03-08 15:47:24 +01:00
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
|