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 is sent SIGKILL or any
18       signal specified with the --signal option.
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.  Note: the last started container can be from other users of
34       Podman on the host machine.  (This option is not available with the re‐
35       mote Podman client, including Mac  and  Windows  (excluding  WSL2)  ma‐
36       chines)
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       podman kill mywebserver
48
49
50
51       Kill container with a given ID
52
53       podman kill 860a4b23
54
55
56
57       Terminate container by sending TERM signal
58
59       podman kill --signal TERM 860a4b23
60
61
62
63       Kill the latest container created by Podman
64
65       podman kill --latest
66
67
68
69       Terminate all containers by sending KILL signal
70
71       podman kill --signal KILL -a
72
73
74
75       Kill container using ID specified in a given files
76
77       podman kill --cidfile /home/user/cidfile-1
78       podman kill --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
79
80
81

SEE ALSO

83       podman(1), podman-stop(1)
84
85

HISTORY

87       September 2017, Originally compiled by  Brent  Baude  bbaude@redhat.com
88       ⟨mailto:bbaude@redhat.com⟩
89
90
91
92                                                                podman-kill(1)
Impressum