-
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
Long running container becomes unusable/unable to start again: setrlimit 'RLIMIT_NPROC': Operation not permitted: OCI permission denied
#19059
Comments
setrlimit
RLIMIT_NPROC: Operation not permitted: OCI permission denied
setrlimit
RLIMIT_NPROC: Operation not permitted: OCI permission denied
setrlimit 'RLIMIT_NPROC': Operation not permitted: OCI permission denied
|
So what can be done to run the current container without having to wait for a new drop of Podman? |
Recreate the container and that will be required regardless of the new version or not. Only newly created container are able to use the current limits on start. Old ones will continue to use incorrect limits as they are part of the spec. |
"Every reboot it seems to have a chance of changing."
So I will have to export to container and import to preserve the state/data? So there is no way to clear the |
That worked for me. I tried both |
Note: this especially affects people who use Distrobox to run alternative environments
I have a container that I often use for development purpose, called
devsys
. I usepodman exec -it devsys su - gbraad
to enter it for normal use. It runs assystemd=always
, so it is expected to be long-running.From time to time the host might reboot, or the container gets restarted. And once in a while I get the following:
This has happened for me on Fedora 38, podman machine (WSL2), on Alma 9, etc. So this is not an isolated case.
The container gets started with:
and sometimes the lifecycle on the host is done with
podman generate systemd
, although otherwise it is a simplepodman start devsys
as mentioned before.What can cause this issue?
The text was updated successfully, but these errors were encountered: