-
According to #6582 (comment) and #5572 (comment) the User= directive is not supported by podman. I wonder why this is not supported as it works just fine, with root and rootless, as far as I could test. What are the exact issues except you need to modify the podman generated systemd files a little bit? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Generally speaking, Podman (when managed by systemd) is run as We have plans to convert the default for our unit files to |
Beta Was this translation helpful? Give feedback.
-
Update: I think that's something we need to give some priority this year. Using Cc @fatherlinux since we chatted about this very topic last week. |
Beta Was this translation helpful? Give feedback.
Generally speaking, Podman (when managed by systemd) is run as
Type=forking
with PID files to inform systemd of the PID of the container (not Podman - Conmon and the container will double-fork to daemonize after being launched, to ensure they survive if the Podman process exits). Unfortunately, this doesn't work when theUser
directive is specified, as systemd expects all PID files to be owned by root. Podman will not be running as root in this case (because systemd launched it as a different user) and as such systemd will refuse to read the PID file.We have plans to convert the default for our unit files to
Type=sdnotify
(code changes are required that haven't made it in yet). Once this…