1podman-stop(1)()                                              podman-stop(1)()
2
3
4

NAME

6       podman-stop - Stop one or more running containers
7
8

SYNOPSIS

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

DESCRIPTION

17       Stops  one  or  more containers.  You may use container IDs or names as
18       input. The --time switch allows you to specify the number of seconds to
19       wait  before  forcibly stopping the container after the stop command is
20       issued to the container. The default is 10 seconds.  By  default,  con‐
21       tainers  are  stopped  with SIGTERM and then SIGKILL after the timeout.
22       The SIGTERM default can be overridden by the image used to  create  the
23       container and also via command line when creating the container.
24
25

OPTIONS

27       --all, -a
28
29
30       Stop all running containers.  This does not include paused containers.
31
32
33       --cidfile
34
35
36       Read  container  ID  from  the specified file and remove the container.
37       Can be specified multiple times.
38
39
40       --ignore, -i
41
42
43       Ignore errors when specified containers are not in the container store.
44       A  user  might  have decided to manually remove a container which would
45       lead to a failure during the ExecStop directive of  a  systemd  service
46       referencing that container.
47
48
49       --latest, -l
50
51
52       Instead  of  providing  the  container name or ID, use the last created
53       container. If you use methods other than Podman to run containers  such
54       as  CRI-O,  the  last  started  container could be from either of those
55       methods.
56
57
58       The latest option is not supported on the remote client.
59
60
61       --time, -t=time
62
63
64       Time to wait before forcibly stopping the container
65
66

EXAMPLES

68       $ podman stop mywebserver
69
70
71       $ podman stop 860a4b235279
72
73
74       $ podman stop mywebserver 860a4b235279
75
76
77       $ podman stop --cidfile /home/user/cidfile-1
78
79
80       $ podman stop --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
81
82
83       $ podman stop --time 2 860a4b235279
84
85
86       $ podman stop -a
87
88
89       $ podman stop --latest
90
91

SEE ALSO

93       podman(1), podman-rm(1)
94
95

HISTORY

97       September 2018, Originally compiled by  Brent  Baude  bbaude@redhat.com
98       ⟨mailto:bbaude@redhat.com⟩
99
100
101
102                                                              podman-stop(1)()
Impressum