2021-03-08 15:47:24 +01:00
|
|
|
command: docker compose kill
|
2024-02-14 20:02:37 +01:00
|
|
|
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
|
2024-08-02 19:42:23 +02:00
|
|
|
$ docker compose kill -s SIGINT
|
2022-07-26 14:58:08 +02:00
|
|
|
```
|
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"
|
2024-02-14 20:02:37 +01:00
|
|
|
description: Remove containers for services not defined in the Compose file
|
2022-08-19 04:29:51 +02:00
|
|
|
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
|
2024-02-14 20:02:37 +01:00
|
|
|
description: SIGNAL to send to the container
|
2022-07-26 14:58:08 +02:00
|
|
|
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
|
2023-07-07 14:27:14 +02:00
|
|
|
hidden: false
|
2021-03-08 15:47:24 +01:00
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
|