Debian Codegraph @

docs/reference/compose_kill.md

raw
1 # docker compose kill
2
3 <!---MARKER_GEN_START-->
4 Forces running containers to stop by sending a `SIGKILL` signal. Optionally the signal can be passed, for example:
5
6 ```console
7 $ docker compose kill -s SIGINT
8 ```
9
10 ### Options
11
12 | Name | Type | Default | Description |
13 |:-------------------|:---------|:----------|:---------------------------------------------------------------|
14 | `--dry-run` | `bool` | | Execute command in dry run mode |
15 | `--remove-orphans` | `bool` | | Remove containers for services not defined in the Compose file |
16 | `-s`, `--signal` | `string` | `SIGKILL` | SIGNAL to send to the container |
17
18
19 <!---MARKER_GEN_END-->
20
21 ## Description
22
23 Forces running containers to stop by sending a `SIGKILL` signal. Optionally the signal can be passed, for example:
24
25 ```console
26 $ docker compose kill -s SIGINT
27 ```