1podman-restart(1)() podman-restart(1)()
2
3
4
6 podman-restart - Restart one or more containers
7
8
10 podman restart [options] container ...
11
12
13 podman container restart [options] container ...
14
15
17 The restart command allows containers to be restarted using their ID or
18 name. Containers will be stopped if they are running and then
19 restarted. Stopped containers will not be stopped and will only be
20 started.
21
22
24 --all, -a
25 Restart all containers regardless of their current state.
26
27
28 --latest, -l
29 Instead of providing the container name or ID, use the last created
30 container. If you use methods other than Podman to run containers such
31 as CRI-O, the last started container could be from either of those
32 methods. (This option is not available with the remote Podman client)
33
34
35 --running
36 Restart all containers that are already in the running state.
37
38
39 --time=time, -t
40 Timeout to wait before forcibly stopping the container.
41
42
44 Restart the latest container
45
46
47 $ podman restart -l
48 ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467
49
50
51
52 Restart a specific container by partial container ID
53
54
55 $ podman restart ff6cf1
56 ff6cf1e5e77e6dba1efc7f3fcdb20e8b89ad8947bc0518be1fcb2c78681f226f
57
58
59
60 Restart two containers by name with a timeout of 4 seconds
61
62
63 $ podman restart --time 4 test1 test2
64 c3bb026838c30e5097f079fa365c9a4769d52e1017588278fa00d5c68ebc1502
65 17e13a63081a995136f907024bcfe50ff532917988a152da229db9d894c5a9ec
66
67
68
69 Restart all running containers
70
71
72 $ podman restart --running
73
74
75
76 Restart all containers
77
78
79 $ podman restart --all
80
81
82
84 podman(1), podman-run(1), podman-start(1), podman-create(1)
85
86
88 March 2018, Originally compiled by Matt Heon mheon@redhat.com
89 ⟨mailto:mheon@redhat.com⟩
90
91
92
93 podman-restart(1)()