-
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
--userns=keep-id
freezes Podman with some Docker containers
#21939
Comments
it is the container cleanup @mheon |
The |
documenting what i see, idont have time to run with this more rn. running the reproducer provider, the does occur as described. The terminal is returned. but indeed, a lock is being taken (or never freed). I then observe one conmon and one podman process continuing, Both processes are sitting in a wait (podman in a futex). |
I can confirm it doesn't occur without |
Closing as dup then, the fix will be in podman 5.0 |
Issue Description
Some Docker containers do complicated user management in entrypoint scripts after container creation, running initially as root and using a shell script to create the actual user the container is run as. When paired with
--userns=keep-id
, this can cause Podman to become unresponsive (podman ps
,podman stop
, and other commands stop working entirely) until the podman process that launched the container is killed manually.I have not produced a minimal reproducible example, but one affected container is the ShokoServer container (https://hub.docker.com/r/shokoanime/server), which has an entrypoint script that looks like this: https://github.com/ShokoAnime/ShokoServer/blob/master/dockerentry.sh
Steps to reproduce the issue
podman run --name myshoko --restart always --userns=keep-id shokoanime/server:latest
Describe the results you received
Podman hangs seemingly indefinitely. Ctrl-C does not manage to exit the session.
podman ps
,podman stop myshoko
, and other podman commands (in other shells) will also hang. The only way to un-hang podman I've found is to kill the affected podman process from another shell.Describe the results you expected
Podman doesn't hang. Ideally the container would also work, but the user management stuff it's doing seems to be a pretty Docker-specific hack so reconciling it with Podman and
--userns=keep-id
may not be easy.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: