github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-kill.1.md (about)

     1  % podman-kill(1)
     2  
     3  ## NAME
     4  podman\-kill - Kill the main process in one or more containers
     5  
     6  ## SYNOPSIS
     7  **podman kill** [*options*] [*container* ...]
     8  
     9  **podman container kill** [*options*] [*container* ...]
    10  
    11  ## DESCRIPTION
    12  The main process inside each container specified will be sent SIGKILL, or any signal specified with option --signal.
    13  
    14  ## OPTIONS
    15  #### **--all**, **-a**
    16  
    17  Signal all running and paused containers.
    18  
    19  #### **--cidfile**
    20  
    21  Read container ID from the specified file and remove the container.  Can be specified multiple times.
    22  
    23  #### **--latest**, **-l**
    24  
    25  Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
    26  to run containers such as CRI-O, the last started container could be from either of those methods. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
    27  
    28  #### **--signal**, **-s**
    29  
    30  Signal to send to the container. For more information on Linux signals, refer to *man signal(7)*.
    31  
    32  
    33  ## EXAMPLE
    34  
    35  Kill container with a given name
    36  ```
    37  podman kill mywebserver
    38  ```
    39  
    40  Kill container with a given ID
    41  ```
    42  podman kill 860a4b23
    43  ```
    44  
    45  Terminate container by sending `TERM` signal
    46  ```
    47  podman kill --signal TERM 860a4b23
    48  ```
    49  
    50  Kill the latest container created by Podman
    51  ```
    52  podman kill --latest
    53  ```
    54  
    55  Terminate all containers by sending `KILL` signal
    56  ```
    57  podman kill --signal KILL -a
    58  ```
    59  
    60  Kill container using ID specified in a given files
    61  ```
    62  podman kill --cidfile /home/user/cidfile-1
    63  podman kill --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
    64  ```
    65  
    66  ## SEE ALSO
    67  **[podman(1)](podman.1.md)**, **[podman-stop(1)](podman-stop.1.md)**
    68  
    69  ## HISTORY
    70  September 2017, Originally compiled by Brent Baude <bbaude@redhat.com>