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
47

EXAMPLES

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

SEE ALSO

68       podman(1)
69
70

HISTORY

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