1podman-stop(1)() podman-stop(1)()
2
3
4
6 podman-stop - Stop one or more running containers
7
8
10 podman stop [options] container ...
11
12
13 podman container stop [options] container ...
14
15
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
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
49
50 --time, -t=time
51 Time to wait before forcibly stopping the container
52
53
55 $ podman stop mywebserver
56
57
58 $ podman stop 860a4b235279
59
60
61 $ podman stop mywebserver 860a4b235279
62
63
64 $ podman stop --cidfile /home/user/cidfile-1
65
66
67 $ podman stop --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
68
69
70 $ podman stop --time 2 860a4b235279
71
72
73 $ podman stop -a
74
75
76 $ podman stop --latest
77
78
80 podman(1), podman-rm(1)
81
82
84 September 2018, Originally compiled by Brent Baude bbaude@redhat.com
85 ⟨mailto:bbaude@redhat.com⟩
86
87
88
89 podman-stop(1)()