github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/docs/reference/commandline/kill.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "kill"
     4  description = "The kill command description and usage"
     5  keywords = ["container, kill, signal"]
     6  [menu.main]
     7  parent = "smn_cli"
     8  +++
     9  <![end-metadata]-->
    10  
    11  # kill
    12  
    13      Usage: docker kill [OPTIONS] CONTAINER [CONTAINER...]
    14  
    15      Kill a running container using SIGKILL or a specified signal
    16  
    17        --help                 Print usage
    18        -s, --signal="KILL"    Signal to send to the container
    19  
    20  The main process inside the container will be sent `SIGKILL`, or any
    21  signal specified with option `--signal`.
    22  
    23  > **Note:**
    24  > `ENTRYPOINT` and `CMD` in the *shell* form run as a subcommand of `/bin/sh -c`,
    25  > which does not pass signals. This means that the executable is not the container’s PID 1
    26  > and does not receive Unix signals.