-
Notifications
You must be signed in to change notification settings - Fork 246
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
Can't pull read only image to additionalimagestores as root #1311
Labels
Comments
I could find the fix. You have to pass the |
giuseppe
added a commit
to giuseppe/storage
that referenced
this issue
Aug 24, 2022
in addition to check the UID of the user that launched the command, also check whether the process has CAP_SYS_ADMIN (in the same way as podman/pkg/rootless does) and also check that the current user namespace has all the IDs available. Closes: containers#1311 After this change, podman/pkg/rootless can use the function directly instead of defining another version with similar functionalities. Signed-off-by: Giuseppe Scrivano <[email protected]>
opened a PR: #1312 |
giuseppe
added a commit
to giuseppe/storage
that referenced
this issue
Aug 24, 2022
in addition to check the UID of the user that launched the command, also check whether the process has CAP_SYS_ADMIN (in the same way as podman/pkg/rootless does) and also check that the current user namespace has all the IDs available. Closes: containers#1311 After this change, podman/pkg/rootless can use the function directly instead of defining another version with similar functionalities. Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe could you give me a brief summary of why this PR fixed the issue? |
giuseppe
added a commit
to giuseppe/storage
that referenced
this issue
Aug 25, 2022
in addition to check the UID of the user that launched the command, also check whether the process has CAP_SYS_ADMIN (in the same way as podman/pkg/rootless does) and also check that the current user namespace has all the IDs available. Closes: containers#1311 After this change, podman/pkg/rootless can use the function directly instead of defining another version with similar functionalities. Signed-off-by: Giuseppe Scrivano <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Hi, I'm running podman inside podman. I run my container in privileged mode:
Inside the container I use podman 4.2.0. I want to pull an image to the read-only store but I run into the following error:
Output:
Running just
podman pull <image>
works.Steps to reproduce the issue:
Follow https://www.redhat.com/sysadmin/podman-inside-container and https://www.redhat.com/sysadmin/image-stores-podman
Try to pull an image to the read-only store as root.
Describe the results you received:
I can't store the pulled image in the store
Describe the results you expected:
I'd expect in privileged mode, that there should be no permission error.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: