-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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-run/docker-run --pids-limit inconsistency when unlimited #11782
Comments
Easiest fix is to allow -1 and then just set it to 0. |
@rhatdan but -1 is being used for server defaults, not exactly sure what server defaults are, but that would cause an issue if we just convert -1 to 0 for the unlimited case. |
Man page says.
No mention of -1. |
I am seeing the -1 here in the flag definition https://github.com/containers/podman/blob/main/cmd/podman/common/create.go#L424
The flag definition might be wrong or the man page, but we should make it consistent. It fails with -1, so no idea what "server defaults" are supposed to be. |
I think that description might just be wrong - it doesn't look like -1 is handled properly, and the manpage says it isn't a valid value. |
Thanks for the quick fix! Much appreciated. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman run --pids-limit=<unlimited>
is inconsistent withdocker-run
.man docker-run
mentions this for--pids-limit
:Contrast this to what
man podman-run
states:Note the
-1
vs.0
difference for unlimited.Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Starts the container with unlimited pids-limit just like
docker run
does.Additional information you deem important (e.g. issue happens only occasionally):
--pids-limit=0
works fine, but seems inconsistent and arbitrary comparing to docker. Isn't it supposed to be a drop-in replacement?Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: