Replies: 3 comments 10 replies
-
Do you have a reproducer? Command line arguments you are using. These are very difficult to diagnose without the Containerfile or commandline you are using. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Strange could you try |
Beta Was this translation helpful? Give feedback.
1 reply
-
The outer podman is running as non root? Does it have enough UIDs to run the inner in a separate user namespace? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to containerise a TeamCity buildagent which runs CI jobs for a Yocto-based project I'm working on. The project's build system uses podman (which effectively wraps Yocto), which works fine when running on a host machine, but runs into permission issues when running within a container. The outer (i.e. buildagent) container is setup as described in https://www.redhat.com/sysadmin/podman-inside-container, started with systemd.
The inner container (i.e. the build system container, run under a non-root user) is unable to mount /sys due to "OCI permission denied" when run (see error message). Building the container image works in this scenario. I haven't seen this issue mentioned elsewhere online, so I'm hoping I could get some insight into it here :) Please let me know if there's any additional information I can provide.
Error message:
Error: mount
/systo
/sys: Operation not permitted: OCI permission denied
Outer container run options:
Inner container run options:
Podman info inside buildagent container:
Podman info on host:
Beta Was this translation helpful? Give feedback.
All reactions