-
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
using --userns keep-id prevents container from starting up #23651
Comments
It seems that I was just being very impatient. The first run seems to take time with some images and appears to hang on Some images take much longer than others, but subsequent runs are much faster. I'm very sorry to waste your time. |
Scratch that. It is still happening with some images and the hang is way too long. It seems like a permissions issue but I obviously do not know what is causing it. When I run The full log entry for the debug log is: In here I see that When I manually terminated the process, this directory was removed from I decided to run |
Scratch that again, as the same process happens with ubuntu:mantic using the same user:group id (100000) and after waiting for some time, I can access those folders without a permission denied error. I guess the best question to ask is why is there such a long delay when using It's worth noting that there is a difference in the debug logs between images that worked eventually after a delay and those that seemingly hanged forever. These entries were just above the |
There is no idmap support for rootless, so when you pull with one user namespace and then switch to a different namespace with --userns=keep-id, then container storage needs to |
Oh okay, thank you. Most of the time I run without |
In the output of the command
that is shown in #23651 (comment) there are the lines
and
This tells us that native overlayfs is used. You could also consider using fuse-overlayfs to see if it speeds up the creation of the container. The Podman performance guide mentions that creating a container is faster
In the text there is also a link to a #16541 (comment) which contains some more information. |
Issue Description
With some images, podman fails to start if
--userns keepid
is set. There is no error message and podman simply hangs until it is manually terminated.Steps to reproduce the issue
Steps to reproduce the issue
podman run --log-level debug --rm --user 1001:1001 --userns=keep-id ubuntu:mantic echo "STARTED"
where1001
is the id of your host user.overlay: mount_data=lowerdir=...
Describe the results you received
The container does not start but hangs
Describe the results you expected
The container should start. If I change the command to
podman run --log-level debug --rm --user 1001:1001 --userns=keep-id alpine:latest echo "STARTED"
it does start which leads me to believe that it is image specific, yet there is no debug information or errors to help fix this on my end.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: