need a systemd service unit file to run as root and start podman as a regular user #17333
-
I want to create a systemd service unit file run by root that will start a rootless container as licuser1, a regular user. I read in podman-generate-systemd:
That either requires systemctl to be run as the user or to run podman as root. Does anyone know how I can modify that file or create another one such that it is started with systemctl by root at system startup while it runs podman rootless as licuser1? I tried adding During the xCAT postscript that runs as root during the startup of this system, I issue
That should take care of that issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you just want the startup at boot use the enable linger mode for the user as mentioned in the man page. |
Beta Was this translation helpful? Give feedback.
User=
/Group=
do not work and are not supported by us, you need to run the unit in your systemd user session as it is described in the man page.If you just want the startup at boot use the enable linger mode for the user as mentioned in the man page.