1podman-wait(1)()                                              podman-wait(1)()
2
3
4

NAME

6       podman-wait  -  Wait  on one or more containers to stop and print their
7       exit codes
8
9

SYNOPSIS

11       podman wait [options] container [...]
12
13
14       podman container wait [options] container [...]
15
16

DESCRIPTION

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

OPTIONS

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. (This option is not available with the remote  Podman  client,
46       including Mac and Windows (excluding WSL2) machines)
47
48

EXAMPLES

50              $ podman wait mywebserver
51              0
52
53              $ podman wait --latest
54              0
55
56              $ podman wait --interval 2s
57              0
58
59              $ podman wait 860a4b23
60              1
61
62              $ podman wait mywebserver myftpserver
63              0
64              125
65
66
67

SEE ALSO

69       podman(1)
70
71

HISTORY

73       September  2017,  Originally  compiled  by Brent Baudebbaude@redhat.com
74       ⟨mailto:bbaude@redhat.com⟩
75
76
77
78                                                              podman-wait(1)()
Impressum