Is it possible to start rootfull podman backend but connect with unprivileged user to run podman-remote
?
#12903
-
Hi podman experts, There is a remote-client tutorial doc, it covers running rootless podman backend and connect it to run
Is it possible to start rootfull podman backend and grant full permissions to unprivileged users, or just start rootfull podman backend with unprivileged users? I'm not sure whether this makes sense and want to ask for your opinions, if that is possible, could you let me how can I achieve this? Steps to reproduce the issue:
Describe the results you received: Describe the results you expected: Additional information you deem important (e.g. issue happens only occasionally): I believe podman version doesn't matter here, so not including the info. Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md) Yes |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
You could chown the permission on the rootfull podman.sock to be accessible by group Say the podman group, then you could add all users to the podman group, and setup podman-remote to use that socket. This would mimic what Docker does, but I am not crazy about it. If you make the change the following articles would apply to Podman as well as Docker. https://projectatomic.io/blog/2015/08/why-we-dont-let-non-root-users-run-docker-in-centos-fedora-or-rhel/ |
Beta Was this translation helpful? Give feedback.
-
We used to do this with Basically you need to configure systemd to create both the directory and the socket, using the "podman" group (instead of "root" group) When using "podman machine", it should set up a "system connection" of each kind - so that you only need to switch --connection |
Beta Was this translation helpful? Give feedback.
We used to do this with
sudo
, but when letting podman handle the ssh connection it is possible to use a root-equivalent group instead.Basically you need to configure systemd to create both the directory and the socket, using the "podman" group (instead of "root" group)
When using "podman machine", it should set up a "system connection" of each kind - so that you only need to switch --connection