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 Restart all containers regardless of their current state.
25
26
27       --latest, -l Instead of providing the container name  or  ID,  use  the
28       last  created  container.  If  you use methods other than Podman to run
29       containers such as CRI-O, the last  started  container  could  be  from
30       either of those methods.
31
32
33       The latest option is not supported on the remote client.
34
35
36       --running Restart all containers that are already in the running state.
37
38
39       -t, --time=time Timeout to wait before forcibly stopping the container.
40
41

EXAMPLES

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

SEE ALSO

83       podman(1), podman-run(1), podman-start(1), podman-create(1)
84
85

HISTORY

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