-
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
An error occurred while joining the pod with userns=keep-id #18580
Comments
does it work if you use crun? |
do you unset the environment variable after you create the POD? Otherwise it will end up creating a new user namespace for the container |
Actually I tested it in a shell script.
|
Thanks, the problem was solved after I installed crun |
I think the error is in your script. You need to unset the environment variable after you create the pod or even better just use |
Yeah, it also worked, but you cannot set --pod and --userns at the same time when creating a container(output: |
that should not be allowed. I've opened a PR to block it: #18601 |
the combination --pod and --userns is already blocked. Ignore the PODMAN_USERNS variable when a pod is used, since it would cause to create a new user namespace for the container. Ideally a container should be able to do that, but its user namespace must be a child of the pod user namespace, not a sibling. Since nested user namespaces are not allowed in the OCI runtime specs, disallow this case, since the end result is just confusing for the user. Closes: containers#18580 Signed-off-by: Giuseppe Scrivano <[email protected]>
Issue Description
An error occurred while joining the pod with userns=keep-id
OS: openSUSE Tumbleweed 20230513
podman version: 4.5.0
Steps to reproduce the issue
Steps to reproduce the issue
1.
Describe the results you received
46504c362dab5c22265af12a53f397f5252e3e34fa39469f62c70375b79bc627
Error: runc: runc create failed: unable to start container process: error during container init: error mounting "sysfs" to rootfs at "/sys": mount sysfs:/sys (via /proc/self/fd/12), flags: 0xf: operation not permitted: OCI permission denied
46504c362dab5c22265af12a53f397f5252e3e34fa39469f62c70375b79bc627
Describe the results you expected
46504c362dab5c22265af12a53f397f5252e3e34fa39469f62c70375b79bc627
foobar
46504c362dab5c22265af12a53f397f5252e3e34fa39469f62c70375b79bc627
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
SELinux disabled
Additional information
No additional configuration files
The text was updated successfully, but these errors were encountered: