github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-wait.1.md (about) 1 % podman-wait(1) 2 3 ## NAME 4 podman\-wait - Wait on one or more containers to stop and print their exit codes 5 6 ## SYNOPSIS 7 **podman wait** [*options*] *container* [...] 8 9 **podman container wait** [*options*] *container* [...] 10 11 ## DESCRIPTION 12 Waits on one or more containers to stop. The container can be referred to by its 13 name or ID. In the case of multiple containers, Podman will wait on each consecutively. 14 After all specified containers are stopped, the containers' return codes are printed 15 separated by newline in the same order as they were given to the command. 16 17 ## OPTIONS 18 19 #### **--condition**=*state* 20 Condition to wait on (default "stopped") 21 22 #### **--help**, **-h** 23 24 Print usage statement 25 26 #### **--interval**, **-i**=*duration* 27 Time interval to wait before polling for completion. A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". Time unit defaults to "ms". 28 29 #### **--latest**, **-l** 30 31 Instead of providing the container name or ID, use the last created container. If you use methods other than Podman 32 to run containers such as CRI-O, the last started container could be from either of those methods. 33 34 The latest option is not supported on the remote client. 35 36 ## EXAMPLES 37 38 ``` 39 $ podman wait mywebserver 40 0 41 42 $ podman wait --latest 43 0 44 45 $ podman wait --interval 2s 46 0 47 48 $ podman wait 860a4b23 49 1 50 51 $ podman wait mywebserver myftpserver 52 0 53 125 54 ``` 55 56 ## SEE ALSO 57 podman(1) 58 59 ## HISTORY 60 September 2017, Originally compiled by Brent Baude<bbaude@redhat.com>