Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman wait -i has confusing documentation about its behaviour #8619

Closed
zem opened this issue Dec 7, 2020 · 1 comment
Closed

podman wait -i has confusing documentation about its behaviour #8619

zem opened this issue Dec 7, 2020 · 1 comment
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@zem
Copy link

zem commented Dec 7, 2020

With a recent podman 2.1.1 I got confusing information about podman wait -i

The podman-wait manpage shows:

         Microseconds to wait before polling for completion

while podman wait --help shows:

  -i, --interval duration   Milliseconds to wait before polling for completion (default 250ns)

together with an example:

Examples:
  podman wait --interval 5000 ctrID

lets try this example:

# podman wait --interval 5000 gitlab_gitlab
Error: invalid argument "5000" for "-i, --interval" flag: time: missing unit in duration 5000

So the first documentation says it wants microseconds the second says it wants milliseconds and then it does not work without units at all, except that the only provided example says it should. After this the user can't be sure if the 250ns are correct.

It looks like podman wait --interval 5s gitlab_gitlab is giving some result so please document the right behaviour.

@rhatdan
Copy link
Member

rhatdan commented Dec 7, 2020

In podman 2.2 this is fixed.

man podman wait ...
...
   --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".

#8093

@rhatdan rhatdan closed this as completed Dec 7, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants