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