github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-kill.1.md.in (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 is sent SIGKILL or any signal specified with the `--signal` option.
    13  
    14  ## OPTIONS
    15  #### **--all**, **-a**
    16  
    17  Signal all running and paused containers.
    18  
    19  @@option cidfile.read
    20  
    21  @@option latest
    22  
    23  @@option signal
    24  
    25  ## EXAMPLE
    26  
    27  Kill container with a given name:
    28  ```
    29  podman kill mywebserver
    30  ```
    31  
    32  Kill container with a given ID:
    33  ```
    34  podman kill 860a4b23
    35  ```
    36  
    37  Terminate container by sending `TERM` signal:
    38  ```
    39  podman kill --signal TERM 860a4b23
    40  ```
    41  
    42  Kill the latest container. (This option is not available with the remote Podman client, including Mac and Windows
    43  (excluding WSL2) machines):
    44  ```
    45  podman kill --latest
    46  ```
    47  
    48  Terminate all containers by sending `KILL` signal:
    49  ```
    50  podman kill --signal KILL -a
    51  ```
    52  
    53  Kill containers using ID specified in a given files:
    54  ```
    55  podman kill --cidfile /home/user/cidfile-1
    56  podman kill --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
    57  ```
    58  
    59  ## SEE ALSO
    60  **[podman(1)](podman.1.md)**, **[podman-stop(1)](podman-stop.1.md)**
    61  
    62  ## HISTORY
    63  September 2017, Originally compiled by Brent Baude <bbaude@redhat.com>