Replies: 1 comment 5 replies
-
You would need to run a rootful container in order to set these limits. A rootless user can not increase limits. I am not quite sure how it works with your specific limits, but in general you can only lower limts (i.e. open files) and not increase them. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
I am trying to change default values of scheduling priority (-e) and real-time priority (-r) of ulimit in a podman container but unfortunately get a permission issue:
Error: crun: setrlimit
RLIMIT_NICE
: Operation not permitted: OCI permission deniedError: crun: setrlimit
RLIMIT_RTPRIO
: Operation not permitted: OCI permission deniedMy system is using cgroup v2 and I have enabled all required cgroup controllers how to be described there.
https://rootlesscontaine.rs/getting-started/common/cgroup2/
Steps to reproduce the issue
Steps to reproduce the issue:
2 .podman run --name hello --privileged --cap-add all --ulimit rtprio=99 --rm quay.io/podman/hello
Describe the results you received
RLIMIT_NICE
: Operation not permitted: OCI permission deniedRLIMIT_RTPRIO
: Operation not permitted: OCI permission deniedDescribe the results you expected
if I change podman on docker engine, everything works as expected.
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Beta Was this translation helpful? Give feedback.
All reactions