-
Notifications
You must be signed in to change notification settings - Fork 802
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
Low ulimits when building with docker-compose/podman-compose #5273
Comments
$ ulimit -n Podman and no other process in rootless mode can override the limits set for the user running the podman command. If you raise the limits for the user, then the ulimit should increase. |
During build time, both soft and hard limits seem to inherit from the user's soft limit. During run time, however (aka |
That sounds like a bug - Buildah grabbing different limits from Podman. Question would be which to standardize on; I would vote for hard limit as that's likely higher, and we see a lot of folks running out of resources. |
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Podman currently sets the ulimits of nofile and nproc to max in rootless mode, if the user does not override. Buildah on the other hand just passes in the current defaults. Podman build should match podman run, and this will fix that problem. Fixes: containers#5273 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
In the meantime that the fix get downstreamed on every podman installs, is there a solution to manually up the limit beside running as root ? |
Issue Description
When an image is build with
docker-compose
orpodman-compose
, thenofile
ulimit is 1024 which is too low.Steps to reproduce the issue
Build the following with either
podman-compose
ordocker-compose
that's using podman socket:Describe the results you received
Describe the results you expected
I expect this limit to be configurable. Podman has the following overrides set up:
However, builds using *-compose are not honoring those overrides.
podman info output
$ podman info
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
I'm facing the same issue with podman on macOS and with privileged podman in a container.
Additional information
n/a
The text was updated successfully, but these errors were encountered: