-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Namespace issue when running unprivileged (non-root) container in archlinux #3890
Comments
podman unshare cat /proc/self/uid_map |
|
podman unshare cat /proc/self/uid_map This indicates that you are not running in a user namespace with more then one UID. So either /etc/subuid is setup incorrectly or newuidmap and newgidmap are not working correctly. |
Is their an entry for the user who is UID 1000, inside of /etc/subuid and /etc/subgid? |
|
Weird. |
|
See below:
|
Are they owned by root? |
Yes:
|
I was able to reproduce this issue in a fresh/separate Archlinux, all steps listed below:
|
I think we need to look into better debug information for setting up the user namespace - there's nothing in the |
@clueo8 Could you try this experiment to see if newuidmap is working on archlinux? |
Let me know how this looks, these namespaces are new to me... First terminal:
Second terminal:
First terminal:
|
I rebooted my server and now it appears to be working! |
Great. I assume the machine wasn't rebooted after |
Correct. I did both |
I'd expected it to work via |
No idea, I would have thought so also, but maybe it is just for new logins? Or maybe a reboot is required. |
Closing since it now works. |
I did try logging in with a new session. I'm checking my pacman logs and it looks like my kernel was upgraded that morning and I did not reboot after that... pacman.log:
podman info from above still had the old version: The same thing happened in my test arch system,
Lesson learned, always reboot after kernel upgrades. |
For anyone else finding this issue. After adding my user to |
Thank you guys. This Issue saved me. I was following the documentation in my native language and didn't have this snippet about |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Installed podman from pacman, followed guides for /etc/subuid and /etc/subgid and also kernel.unprivileged_userns_clone=1. When trying to do a simple test of running httpd, it fails to run.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
The container should run without error.
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
):Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: