-
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
Unexpected different behavior between rootless and root podman #10906
Comments
I'm going to assume the failure has something to do with the lack of a user namespace for the root container, given the failure looks like a PAM/adduser one. Can you try adding |
I get this error with your suggestion:
Now I'm running a dnf update on my rhel 8.4, it will upgrade podman to:
|
Ah, that would be the most recent for RHEL. @giuseppe What are the steps for enabling |
The distribution is supposed to allocate a large range of UIDs within /etc/subuid for containers. grep containers /etc/subuid Auto uses this for finding ranges that it can use. We should document this in podman run/create man pages. |
Add reference to the `containers` user in the /etc/subuid and /etc/subgid files. Fixes: containers#10906 Signed-off-by: Daniel J Walsh <[email protected]>
Hi again... I'm not sure if this issue was correctly closed by @openshift-merge-robot I'm confused, and I'm not an expert on the uid mappings. Is this an error specific of my distro (rhel 8.4) and I have to report it somewhere else? Did I miss to configure something? How should I proceed? |
Yes we just documented that you need to add a containers entry to /etc/subuid and /etc/subgid. I don't believe that podman should do this by default at install time. |
the added documentation addresses this side issue related to the use of the cause of the original issue:
is related to the lack of CAP_AUDIT_WRITE capabiltiies as described here. Then, this works:
this same question raised before remains |
I am guessing (Hopefully somewhat educated) is that there is some check that understands a process is not root when run in a rootless container, whereas when it runs as |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Describe the results you received:
see attached the full logs
sudo_log.txt
log.txt
Describe the results you expected:
both steps above 1 and 2 with same behavior, i.e., successful installation of avahi-deamon
Additional information you deem important (e.g. issue happens only occasionally):
This worked fine 1 month ago...
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? (https://github.com/containers/podman/blob/master/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: