Skip to content

How to set up a systemd system service (with User=) that runs a caddy executable without conmon and the OCI runtime  in the rootless podman network namespace? #24626

Answered by Luap99
eriksjolund asked this question in Q&A
Discussion options

You must be logged in to vote

I think using podman unshare --rootless-netns should work, there should no need to add any new options.
I have no tried that but I guess it is possible that podman moves itself out of the cgroup because we do not own it? And the podman setup really wants a cgroup that it can modify?

I have not looked deeply at the cgroup stuff but if the move out of the unit cgroup is the issue then maybe registry.NoMoveProcess option in the code that can be set on a per podman command basis. I think we can set it for podman unshare.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by eriksjolund
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants