-
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
Podman fails to run in rootless container (OKD v3.11) #7861
Comments
If it is not possible to run inside a rootless container, may be you can recommend me a solution for my case. |
I think you should at least add the CAP_SETUID/CAP_SETGID capabilities, or try the |
@giuseppe I also have this kind of error:
when I run my pipeline. |
What am I doing wrong here?
|
Podman will not run within a rootless container without lots of work and requiring a great deal of privilege. Most likely will not work in a version of OpenShift as old as 3.11 either. |
@rhatdan and which version of OKD you recommend to use? |
Well I would suggest a more current version 4.6 or later. We are working on supporting user namespace from within CRI-O now, which might help a little on this. |
Alright then! I'll upgrade my cluster installation to a newer version and then I will experiment with podman one more time. |
Currently you will need to run a container as root and default capabilities. |
Got it, thank @rhatdan! I'm closing the ticket now. |
BUG REPORT
/kind bug
Description
When I'm trying to build image with podman inside unprivileged container in Openshift OKD cluster I get:
Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:42 for /etc/shadow): lchown /etc/shadow: invalid argument
podman system migrate
does nothing and the problem still exists.I've also tried to use the solutions provided in #3421, #6667, #3890, #2393 but nothing helped.
Please help me to solve this problem!
Thank you all in advance.
Steps to reproduce the issue:
podman run ubuntu
inside the pod.Describe the results you received:
When I try to build image inside jenkins pipeline, I get the following result:
Describe the results you expected:
Successfully built image
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes, I've compiled 1.8.x version but the result is still the same
Additional environment details (AWS, VirtualBox, physical, etc.):
Host:
The text was updated successfully, but these errors were encountered: