-
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
Error: setrlimit RLIMIT_NOFILE
: Invalid argument: OCI runtime error
#6857
Comments
This looks sufficiently different from the PID limit that I'm not sure the proposed fix for that will fix this |
It's also rather unusual that you're seeing this with NOFILE, and not the pids limit. It looks like it is set to a non-standard value here... |
Could you show the podman inspect $CTR and look at the ulimit settings? Do you have a containers.conf on your system with some settings? |
@rhatdan I searched the system and there at two containers.conf
I can only do an inspect on a container that's ran with built with --ulimit host
existing container
|
If you remove the file from your homedir, you still can not create a container? |
Correct... without this file I still cant create the container. |
If you create the container, with the create command and then inspect it you are seeing ulimits in the config? podman --version |
Doing
Podman version is in first post.
|
Could you download and try https://koji.fedoraproject.org/koji/buildinfo?buildID=1537752 |
It should shortly be in updates-testing.
Sadly it was not there when I just tried. |
Installed the 2.0.2 version from testing and works as expected. Thanks for persevering. ulimits
|
This issue is still happening in Podman v2.0.2, although it was supposed to be fixed there. For more information see: |
I also hit this issue on Fedora Silverblue Rawhide. I encounter it mainly when I try to enter a toolbox container created with an older version of Podman (pre v2.0.2). New steps to reproduce the issue:
One of the The ^ command fails with:
Output of
Output of
Output of
|
Is this Silverblue? |
And can you include a full |
I updated my previous comment with the needed info. |
This has always been broken - I went back to v1.9.3 and that command is equally nonfunctional. This does not seem like a Podman issue. We briefly made containers with bad rlimits, and those containers were and still are unusable. New containers will work properly. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
unable to create containers
Steps to reproduce the issue:
podman run -it --rm --name test alpine:latest
Describe the results you received:
Error: setrlimit
RLIMIT_NOFILE
: Invalid argument: OCI runtime errorDescribe the results you expected:
The container to start
Additional information you deem important (e.g. issue happens only occasionally):
podman run --ulimit host -it --rm --name test alpine:latest
Using --ulimit host solves the issue.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Physical Machine
ulimit -u --soft
8388608
ulimit -u --hard
8388608
The text was updated successfully, but these errors were encountered: