2022-03-09 12:57:07 +01:00
|
|
|
# docker compose kill
|
|
|
|
|
|
|
|
<!---MARKER_GEN_START-->
|
|
|
|
Force stop service containers.
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2022-12-29 14:32:16 +01:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:-------------------|:---------|:----------|:----------------------------------------------------------------|
|
|
|
|
| `--remove-orphans` | | | Remove containers for services not defined in the Compose file. |
|
|
|
|
| `-s`, `--signal` | `string` | `SIGKILL` | SIGNAL to send to the container. |
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2021-03-11 16:20:30 +01:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Forces running containers to stop by sending a `SIGKILL` signal. Optionally the signal can be passed, for example:
|
|
|
|
|
2021-09-13 17:14:32 +02:00
|
|
|
```console
|
|
|
|
$ docker-compose kill -s SIGINT
|
2021-03-11 16:20:30 +01:00
|
|
|
```
|