github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/cli/docs/reference/commandline/stop.md (about)

     1  ---
     2  title: "stop"
     3  description: "The stop command description and usage"
     4  keywords: "stop, SIGKILL, SIGTERM"
     5  ---
     6  
     7  # stop
     8  
     9  ```markdown
    10  Usage:  docker stop [OPTIONS] CONTAINER [CONTAINER...]
    11  
    12  Stop one or more running containers
    13  
    14  Options:
    15        --help       Print usage
    16    -t, --time int   Seconds to wait for stop before killing it (default 10)
    17  ```
    18  
    19  ## Description
    20  
    21  The main process inside the container will receive `SIGTERM`, and after a grace
    22  period, `SIGKILL`. The first signal can be changed with the `STOPSIGNAL`
    23  instruction in the container's Dockerfile, or the `--stop-signal` option to
    24  `docker run`.
    25  
    26  ## Examples
    27  
    28  ```console
    29  $ docker stop my_container
    30  ```