summaryrefslogtreecommitdiff
path: root/docs/podman-wait.1.md
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-01-08 14:40:29 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-08 22:44:38 +0000
commit245a338f5a6519f5729749be646abbefd12701d8 (patch)
treef40a53649ffd2e67beae4036c029a46b0f1d5c66 /docs/podman-wait.1.md
parentda7556de4ad1d89bd97e1f6c5a146eee00e8c040 (diff)
downloadpodman-245a338f5a6519f5729749be646abbefd12701d8.tar.gz
podman-245a338f5a6519f5729749be646abbefd12701d8.tar.bz2
podman-245a338f5a6519f5729749be646abbefd12701d8.zip
Add latest to wait
It is desirable to have a --latest switch on the podman wait command so we can wait on the latest container created to end. Also, fixes a panic with latest where no containers are available. Signed-off-by: baude <bbaude@redhat.com> Closes: #201 Approved by: baude
Diffstat (limited to 'docs/podman-wait.1.md')
-rw-r--r--docs/podman-wait.1.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/podman-wait.1.md b/docs/podman-wait.1.md
index 5bdefbd5f..31735b7b5 100644
--- a/docs/podman-wait.1.md
+++ b/docs/podman-wait.1.md
@@ -21,10 +21,16 @@ After the container stops, the container's return code is printed.
**--help, -h**
Print usage statement
+**--latest, -l**
+ Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
+to run containers such as CRI-O, the last started container could be from either of those methods.
+
## EXAMPLES
podman wait mywebserver
+ podman wait --latest
+
podman wait 860a4b23
podman wait mywebserver myftpserver