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. (This option is not available with the remote  Podman  client,
48       including Mac and Windows (excluding WSL2) machines)
49
50
51   --time, -t=seconds
52       Seconds to wait before forcibly stopping the container
53
54

EXAMPLES

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

SEE ALSO

81       podman(1), podman-rm(1)
82
83

HISTORY

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