diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-10-21 05:59:51 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-10-21 06:25:36 -0400 |
commit | 3f265e91f4f57758407cc219804678df6250ebc6 (patch) | |
tree | f0fb6019c53a7038a3330c86592a6fc317e4845d /docs/source/markdown | |
parent | 94873a237ab52db27916b8954e489fe780eea069 (diff) | |
download | podman-3f265e91f4f57758407cc219804678df6250ebc6.tar.gz podman-3f265e91f4f57758407cc219804678df6250ebc6.tar.bz2 podman-3f265e91f4f57758407cc219804678df6250ebc6.zip |
Fix handling and documentation of podman wait --interval
In older versions of podman, we supported decimal numbers defaulting
to microseconds. This PR fixes to allow users to continue to specify
only digits.
Also cleaned up documentation to fully describe what input for --interval flag.
Finally improved testing on podman wait to actually make sure the command succeeded.
Fixed tests to work on podman-remote.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'docs/source/markdown')
-rw-r--r-- | docs/source/markdown/podman-wait.1.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/source/markdown/podman-wait.1.md b/docs/source/markdown/podman-wait.1.md index 1d85e9af0..f0ccb1f9e 100644 --- a/docs/source/markdown/podman-wait.1.md +++ b/docs/source/markdown/podman-wait.1.md @@ -23,8 +23,8 @@ Condition to wait on (default "stopped") Print usage statement -**--interval**, **-i**=*microseconds* - Microseconds to wait before polling for completion +**--interval**, **-i**=*duration* + Time interval to wait before polling for completion. A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". Time unit defaults to "ms". **--latest**, **-l** @@ -42,6 +42,9 @@ $ podman wait mywebserver $ podman wait --latest 0 +$ podman wait --interval 2s +0 + $ podman wait 860a4b23 1 |