1podman-wait(1)() podman-wait(1)()
2
3
4
6 podman-wait - Wait on one or more containers to stop and print their
7 exit codes
8
9
11 podman wait [options] container [...]
12
13
14 podman container wait [options] container [...]
15
16
18 Waits on one or more containers to stop. The container can be referred
19 to by its name or ID. In the case of multiple containers, Podman will
20 wait on each consecutively. After all specified containers are
21 stopped, the containers' return codes are printed separated by newline
22 in the same order as they were given to the command.
23
24
26 --condition=state
27 Condition to wait on (default "stopped")
28
29
30 --help, -h
31 Print usage statement
32
33
34 --interval, -i=duration
35 Time interval to wait before polling for completion. A duration string
36 is a sequence of decimal numbers, each with optional fraction and a
37 unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are
38 "ns", "us" (or "µs"), "ms", "s", "m", "h". Time unit defaults to "ms".
39
40
41 --latest, -l
42 Instead of providing the container name or ID, use the last created
43 container. If you use methods other than Podman to run containers such
44 as CRI-O, the last started container could be from either of those
45 methods.
46
47
48 The latest option is not supported on the remote client.
49
50
52 $ podman wait mywebserver
53 0
54
55 $ podman wait --latest
56 0
57
58 $ podman wait --interval 2s
59 0
60
61 $ podman wait 860a4b23
62 1
63
64 $ podman wait mywebserver myftpserver
65 0
66 125
67
68
69
71 podman(1)
72
73
75 September 2017, Originally compiled by Brent Baudebbaude@redhat.com
76 ⟨mailto:bbaude@redhat.com⟩
77
78
79
80 podman-wait(1)()