Best practice for Rootless Podman Socket as a dependency for System-level Units (Rocky 9) #28240
Unanswered
schlitzered
asked this question in
Q&A
Replies: 2 comments
-
|
FYI: I posted this ticket in the Rocky Linux MatterMost #sig/containers |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Running rootless podman in an unprivileged container in kubernetes #28123 might have some useful info for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Podman Team,
I am trying to set up a Forgejo Runner on Rocky 9 that runs as a system-level unit but interacts with a rootless Podman instance. Getting this to work reliably across reboots has been extremely difficult, and the resulting unit file feels like it contains far too many workarounds.
I am looking for the "officially recommended" way to handle this dependency chain, as my current solution feels like I am fighting the OS.
The Setup:
Questions
I also attempted to pivot to a Rootful setup to see if it offered a more 'native' systemd experience. While it removed the loginctl and machinectl hacks, it introduced a different kind of configuration sprawl. To get a non-root user (forgejo) to reliably communicate with the rootful socket across reboots on Rocky 9, I had to implement the following:
The Core Frustration:
Whether I go Rootless or Rootful, I am fighting the ephemeral nature of /run, the default restrictive directory permissions of the Podman installer, and the lack of a 'clean' dependency chain between a system unit and the Podman API.
Is there a 'blessed' way to do this that doesn't involve manually wiring up tmpfiles.d or escaping into user-sessions via machinectl? It feels like Podman is missing a 'System Service Mode' that just works for headless server automation."
Beta Was this translation helpful? Give feedback.
All reactions