-
Notifications
You must be signed in to change notification settings - Fork 2.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Rootless podman in container fails to run #19906
Comments
Try with |
the second command worked (--privileged=false --cap-add=all) the first did not. |
can that be passed to the docker via a helm chart? or is it a k8 system thing? |
That means it is not a seccomp issue but a capability issue. |
|
(Hi, same issue over here with Debian rootfs 👋)
Indeed, FROM debian:bookworm
# ...
RUN apt-get install -y libcap2-bin && \
chmod 0755 /usr/bin/newuidmap /usr/bin/newgidmap && \
setcap cap_setuid=ep /usr/bin/newuidmap && \
setcap cap_setgid=ep /usr/bin/newgidmap && \
apt-get autoremove --purge -y libcap2-bin @rhatdan What do you think about this ? I can't manage to understand why rootless runtime fails to inherit "privileges" through setuid flags ( |
SGTM and much better then using CAP_SYSADMIN. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Issue Description
Running podman without the --privileged in a debian container fails with
works fine with the --privileged flag
Steps to reproduce the issue
Describe the results you received
I tried all the 'hacks' in the various other issues and no change.
eg added to dockerfile
same result
Describe the results you expected
Expect it to run.
Works with the --privileged flag passed in.
Note that neither of this commands will work without the above flag.
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
The text was updated successfully, but these errors were encountered: