-
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
Rootless build permission errors #21422
Comments
make sure the
|
Also make sure the file system that contains newuidmap and newgidmap is not mounted nosuid. |
Thanks for the quick response. This fixed it for me. For future reference, here is a working Containerfile with ubuntu
And this post I found in another issue was helpful - https://samuel.forestier.app/blog/security/podman-rootless-in-podman-rootless-the-debian-way |
Apologies for closing issue prematurely. The above solution lets me run
|
This means podman is running within a mount namespace that the /proc has been modified. Podman wants to modify the /proc itself, which is not allowed by the kernel. You could try a |
Thanks, that did get me past the issue. However when trying to run a docker build with /proc mounted, it lands to a different issue
Containerfile that I am trying to build
|
let's not reuse the same issue for a different question. Using The other error you've reported seems like you've not enough GIDs available. Please verify that in the |
Issue Description
Issue with running podman on a rootless container in k8s.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Case 1: Pulling image without buildah unshare
Case 2: Pulling image after buildah unshare
Describe the results you expected
Expected to pull images without error.
podman info output
The text was updated successfully, but these errors were encountered: