-
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: publishing huge amount of port requires modification of ulimit #1357
Comments
I think this is caused by the new code we added to keep a port busy and not let other applications re-use it. |
For non-rootless code, we can set some high default ulimits in Podman and
Conmon when we start, which should avoid this. I believe Docker defaults to
somewhere around a hundred thousand?
…On Tue, Aug 28, 2018, 04:50 Giuseppe Scrivano ***@***.***> wrote:
I think this is caused by the new code we added to keep a port busy and
not let other applications re-use it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1357 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYHCPgEF-y7IBoDzhP5g8u7Irzbsu_Kks5uVQRUgaJpZM4WO5uv>
.
|
should be fine to set up to |
(any higher value must be tweaked first through |
If we think memory usage could be a problem, it might be a good idea to have a config flag to disable opening FDs - seems easier to explain to users |
we could calculate the number of ports to be open easy enough no? |
Sure, but I like an on/off switch versus turning off expected behavior after a certain threshold |
well what i was implying is that we could set the ulimit to something greater than the number of ports ... |
This should be fixed via #1437 |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
Description
It is not possible to publish 1000 ports via
-p 1000-2000:1000-2000
without changing myulimit -n
which is by default 1024 (2048 was not enough in my bash, 4096 works for me). I am not sure if it is a bug, but it is a deviation from docker behaviour. Perhaps, I could write a blog post but this issue might server the documentation purpose as well.Steps to reproduce the issue:
Describe the results you received:
I get the following error:
Describe the results you expected:
The container is started.
Additional information you deem important (e.g. issue happens only occasionally):
The user must change
ulimit -n
to be able to publish many ports.Output of
podman version
:Output of
podman info
:Additional environment details (AWS, VirtualBox, physical, etc.):
physical Fedora 28
The text was updated successfully, but these errors were encountered: