From 245a338f5a6519f5729749be646abbefd12701d8 Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 8 Jan 2018 14:40:29 -0600 Subject: 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 Closes: #201 Approved by: baude --- docs/podman-wait.1.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3-54-g00ecf