1podman-restart(1)()                                        podman-restart(1)()
2
3
4

NAME

6       podman-restart - Restart one or more containers
7
8

SYNOPSIS

10       podman restart [options] container ...
11
12
13       podman container restart [options] container ...
14
15

DESCRIPTION

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

OPTIONS

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       including Mac and Windows (excluding WSL2) machines)
34
35
36   --running
37       Restart all containers that are already in the running state.
38
39
40   --time, -t=seconds
41       Seconds to wait before forcibly stopping the container.
42
43

EXAMPLES

45       Restart the latest container
46
47
48              $ podman restart -l
49              ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467
50
51
52
53       Restart a specific container by partial container ID
54
55
56              $ podman restart ff6cf1
57              ff6cf1e5e77e6dba1efc7f3fcdb20e8b89ad8947bc0518be1fcb2c78681f226f
58
59
60
61       Restart two containers by name with a timeout of 4 seconds
62
63
64              $ podman restart --time 4 test1 test2
65              c3bb026838c30e5097f079fa365c9a4769d52e1017588278fa00d5c68ebc1502
66              17e13a63081a995136f907024bcfe50ff532917988a152da229db9d894c5a9ec
67
68
69
70       Restart all running containers
71
72
73              $ podman restart --running
74
75
76
77       Restart all containers
78
79
80              $ podman restart --all
81
82
83

SEE ALSO

85       podman(1)
86
87

HISTORY

89       March  2018,  Originally  compiled  by   Matt   Heon   mheon@redhat.com
90       ⟨mailto:mheon@redhat.com⟩
91
92
93
94                                                           podman-restart(1)()
Impressum