-
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 pod --create needs to support the --userns=keep-id flag. #8269
Comments
Summoning @rhatdan , since he handled the seems-to-be-directly-related issue. |
If you change your default to be 0 0 rather then 0 1, this should fix the problem. We have updates going on in Fedora 33 and updated containers/common with the new default. |
Fwiw, changing to 0 0 doesn't fix the issue for me. I have to comment out the configuration line. |
As with carsonbaker, this "0 0" does not solve it for me:
|
I don't seem to have perms to re-open; hopefully someone else does? |
This seems to be distribution based issue. If you distribution/kernel does not supporting setting this sysctl, then it should be removed. We are shipping this by default in Fedora and it is set as the default in containers/common in the config file, but if you remove the config file, it will not be set. What distro are you seeing this on? How old is the kernel? |
Fedora 33, just updated like last week, 5.8.18-300.fc33.x86_64 |
Ok this is a pod/container issue. If I run the container outside of a pod, it works, but when it is run within a container, it fails. |
@mheon This seems like it might be a serious bug. Basically with current settings pods will not work. |
Ok, I have dug deeper into this, the issue is that we are running the infra container and the container in two different user namespaces. The pod is running in the default usernamespace while the container is running in --userns=keep-id. We need to run the pod in the keep-id user namespace for this to work. |
If you remve the --userns=keep-id, does it work for you? |
I'm sorry, yes, I should have said this at the beginning, but tickling this bug requires both pods and --userns=keep-id; drop either the --pod or the --userns and it's fine. Unfortunately, my automation specifically uses that exact combination :). --userns is so that I can have a database container and a web container with everything running with only the permissions and ID of the calling service account, and --pod is so that the web container can see the DB container without exposing it anywhere else. On the --userns front, if there's a better way to achieve "mount this data directory owned by my user into this rootless container without having the files end up with weird owner IDs", I'm more than happy to listen. Like, if there's a way to map things so that the "apache" UID in the container matches the calling user's UID outside of the container, that'd be great, but it's not obvious to me how to do that with --uidmap. |
A friendly reminder that this issue had no activity for 30 days. |
I disagree that this is stale. |
We also have the same issue. |
I agree, I have started a PR to fix this, but I have not had time to finish it, I really could use someone else to take it over. #8393 |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
Just stumbled into this exact issue. Is there a work around until it is fixed ? Been googling like a mad man ! |
Sorry no solution yet. |
Looking for this as well |
A friendly reminder that this issue had no activity for 30 days. |
Hope i'm not hijacking the thread, i have a similar issue with the error
when using |
A friendly reminder that this issue had no activity for 30 days. |
I disagree that this is stale, in the sense that as far as I know it's still a problem. |
Yup, it is not stale. I have a PR in progress #10589 |
Fixed in #10589 |
/kind bug
Description
The following used to work before I upgraded to Fedora 32:
This seems to be very similar to #7766 , and as such may be more of a Fedora issue than a podman issue, but I don't understand the relevant systems well enough to be sure.
And, same as #7766, it is fixable by commenting out:
in my /usr/share/containers/containers.conf, which I had not previously modified.
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
Additional environment details (AWS, VirtualBox, physical, etc.):
Bare metal, F32
The text was updated successfully, but these errors were encountered: