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.
33
34
35       The latest option is not supported on the remote client.
36
37
38   --running
39       Restart all containers that are already in the running state.
40
41
42   --time=time, -t
43       Timeout to wait before forcibly stopping the container.
44
45

EXAMPLES

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

SEE ALSO

87       podman(1), podman-run(1), podman-start(1), podman-create(1)
88
89

HISTORY

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