How to enable instance quadlet templates that restart on reboot. #26449
Unanswered
salottoprogrammatori
asked this question in
Q&A
Replies: 1 comment 1 reply
-
https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#template-files you will need to symlink your instances |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, i've read about podman compatibility with systemd templates using quadlets.
I'm using podman 5.x, my containers are rootless and i have install section in my unit / quadlet files to default.target. My quadlet files are in etc/containers/systemd/users/${UID}/ because i need specific user access.
I've read about a 2024 PR that addresses this kind of things but it seems not suitable for my case.
Now, i'm asking for help just because if i have one template file [email protected], it will create [email protected] that can i start normally with a value through systemd. The real problem is that i need instances that re-start my containers after a system reboot.
So, if i call systemctl --user start [email protected] / start [email protected] , i'm in search for something that re-launch them after a reboot (like non transient / generated enabled units).
I know that if i use DefaultInstance in my unit file i'wll have a generated instance unit that remains after reeboting, but this is not what i need, because it wll make templates totally useless in my case.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions