github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/container_stop.md (about) 1 # stop 2 3 <!---MARKER_GEN_START--> 4 Stop one or more running containers 5 6 ### Aliases 7 8 `docker container stop`, `docker stop` 9 10 ### Options 11 12 | Name | Type | Default | Description | 13 |:-----------------|:---------|:--------|:---------------------------------------------| 14 | `-s`, `--signal` | `string` | | Signal to send to the container | 15 | `-t`, `--time` | `int` | `0` | Seconds to wait before killing the container | 16 17 18 <!---MARKER_GEN_END--> 19 20 ## Description 21 22 The main process inside the container will receive `SIGTERM`, and after a grace 23 period, `SIGKILL`. The first signal can be changed with the `STOPSIGNAL` 24 instruction in the container's Dockerfile, or the `--stop-signal` option to 25 `docker run`. 26 27 ## Examples 28 29 ```console 30 $ docker stop my_container 31 ```