blob: 96ced68a713627496e13642f2ec334242a1fd441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
% podman-pod-kill(1)
## NAME
podman\-pod\-kill - Kill the main process of each container in one or more pods
## SYNOPSIS
**podman pod kill** [*options*] *pod* ...
## DESCRIPTION
The main process of each container inside the pods specified will be sent SIGKILL, or any signal specified with option --signal.
## OPTIONS
#### **--all**, **-a**
Sends signal to all containers associated with a pod.
#### **--latest**, **-l**
Instead of providing the pod name or ID, use the last created pod. If you use methods other than Podman
to run pods such as CRI-O, the last started pod could be from either of those methods. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
#### **--signal**, **-s**
Signal to send to the containers in the pod. For more information on Linux signals, refer to *man signal(7)*.
## EXAMPLE
Kill pod with a given name
```
podman pod kill mywebserver
```
Kill pod with a given ID
```
podman pod kill 860a4b23
```
Terminate pod by sending `TERM` signal
```
podman pod kill --signal TERM 860a4b23
```
Kill the latest pod created by Podman
```
podman pod kill --latest
```
Terminate all pods by sending `KILL` signal
```
podman pod kill --all
```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-pod(1)](podman-pod.1.md)**, **[podman-pod-stop(1)](podman-pod-stop.1.md)**
## HISTORY
July 2018, Originally compiled by Peter Hunt <pehunt@redhat.com>
|