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

EXAMPLES

58       $ podman stop mywebserver
59
60
61       $ podman stop 860a4b235279
62
63
64       $ podman stop mywebserver 860a4b235279
65
66
67       $ podman stop --cidfile /home/user/cidfile-1
68
69
70       $ podman stop --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
71
72
73       $ podman stop --time 2 860a4b235279
74
75
76       $ podman stop -a
77
78
79       $ podman stop --latest
80
81

SEE ALSO

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

HISTORY

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