1podman-kill(1)              General Commands Manual             podman-kill(1)
2
3
4

NAME

6       podman-kill - Kill the main process in one or more containers
7
8

SYNOPSIS

10       podman kill [options] [container ...]
11
12
13       podman container kill [options] [container ...]
14
15

DESCRIPTION

17       The  main process inside each container specified will be sent SIGKILL,
18       or any signal specified with option --signal.
19
20

OPTIONS

22   --all, -a
23       Signal all running and paused containers.
24
25
26   --cidfile=file
27       Read container ID from the specified file and kill the container.   Can
28       be specified multiple times.
29
30
31   --latest, -l
32       Instead  of  providing  the  container name or ID, use the last created
33       container. If you use methods other than Podman to run containers  such
34       as  CRI-O,  the  last  started  container could be from either of those
35       methods. (This option is not available with the remote  Podman  client,
36       including Mac and Windows (excluding WSL2) machines)
37
38
39   --signal, -s=signal
40       Signal to send to the container. For more information on Linux signals,
41       refer to signal(7).  The default is SIGKILL.
42
43

EXAMPLE

45       Kill container with a given name
46
47
48              podman kill mywebserver
49
50
51
52       Kill container with a given ID
53
54
55              podman kill 860a4b23
56
57
58
59       Terminate container by sending TERM signal
60
61
62              podman kill --signal TERM 860a4b23
63
64
65
66       Kill the latest container created by Podman
67
68
69              podman kill --latest
70
71
72
73       Terminate all containers by sending KILL signal
74
75
76              podman kill --signal KILL -a
77
78
79
80       Kill container using ID specified in a given files
81
82
83              podman kill --cidfile /home/user/cidfile-1
84              podman kill --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
85
86
87

SEE ALSO

89       podman(1), podman-stop(1)
90
91

HISTORY

93       September 2017, Originally compiled by  Brent  Baude  bbaude@redhat.com
94       ⟨mailto:bbaude@redhat.com⟩
95
96
97
98                                                                podman-kill(1)
Impressum