diff --git a/docs/source/markdown/podman-wait.1.md.in b/docs/source/markdown/podman-wait.1.md.in index 75376f6b36..218ca04ba1 100644 --- a/docs/source/markdown/podman-wait.1.md.in +++ b/docs/source/markdown/podman-wait.1.md.in @@ -16,10 +16,13 @@ separated by newline in the same order as they were given to the command. An exit code of -1 is emitted for all conditions other than "stopped" and "exited". -NOTE: there is an inherent race condition when waiting for containers with a -restart policy of `always` or `on-failure`, such as those created by `podman -kube play`. Such containers may be repeatedly exiting and restarting, possibly -with different exit codes, but `podman wait` can only display and detect one. +When waiting for containers with a restart policy of `always` or `on-failure`, +such as those created by `podman kube play`, the containers may be repeatedly +exiting and restarting, possibly with different exit codes. `podman wait` will +only display and detect the first exit after the wait command was started. + +When running a container with podman run --rm wait should wait for the +container to be fully removed as well before it returns. ## OPTIONS