Skip to content
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

configure rootless container in root systemd #70

Open
hmoffatt opened this issue Nov 21, 2022 · 0 comments
Open

configure rootless container in root systemd #70

hmoffatt opened this issue Nov 21, 2022 · 0 comments

Comments

@hmoffatt
Copy link

You can run podman rootless but still run it from regular root systemd, by specifying User=rootless_user in the service.

This makes it easier to restart the service, as root can do it as a normal service rather than having to switch user and use systemctl --user.

This still requires lingering for the rootless user. I think the only changes needed to the role would be the path to the systemd unit, and to add the User= line to the service file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant