github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-restart.1.md (about) 1 % podman-restart(1) 2 3 ## NAME 4 podman\-restart - Restart one or more containers 5 6 ## SYNOPSIS 7 **podman restart** [*options*] *container* ... 8 9 **podman container restart** [*options*] *container* ... 10 11 ## DESCRIPTION 12 The restart command allows containers to be restarted using their ID or name. 13 Containers will be stopped if they are running and then restarted. Stopped 14 containers will not be stopped and will only be started. 15 16 ## OPTIONS 17 #### **--all**, **-a** 18 Restart all containers regardless of their current state. 19 20 #### **--latest**, **-l** 21 Instead of providing the container name or ID, use the last created container. If you use methods other than Podman 22 to run containers such as CRI-O, the last started container could be from either of those methods. 23 24 The latest option is not supported on the remote client. 25 26 #### **--running** 27 Restart all containers that are already in the *running* state. 28 29 #### **--time**=*time*, **-t** 30 Timeout to wait before forcibly stopping the container. 31 32 33 ## EXAMPLES 34 35 Restart the latest container 36 ``` 37 $ podman restart -l 38 ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467 39 ``` 40 41 Restart a specific container by partial container ID 42 ``` 43 $ podman restart ff6cf1 44 ff6cf1e5e77e6dba1efc7f3fcdb20e8b89ad8947bc0518be1fcb2c78681f226f 45 ``` 46 47 Restart two containers by name with a timeout of 4 seconds 48 ``` 49 $ podman restart --time 4 test1 test2 50 c3bb026838c30e5097f079fa365c9a4769d52e1017588278fa00d5c68ebc1502 51 17e13a63081a995136f907024bcfe50ff532917988a152da229db9d894c5a9ec 52 ``` 53 54 Restart all running containers 55 ``` 56 $ podman restart --running 57 ``` 58 59 Restart all containers 60 ``` 61 $ podman restart --all 62 ``` 63 64 ## SEE ALSO 65 podman(1), podman-run(1), podman-start(1), podman-create(1) 66 67 ## HISTORY 68 March 2018, Originally compiled by Matt Heon <mheon@redhat.com>