3 ms·
For that Podman provides a nifty little trick: `podman generate systemd`[0] which allows you to generate systemd unit files for your pods and/or containers. On
by born2discover 4y ago
For that Podman provides a nifty little trick: `podman generate systemd`[0] which allows you to generate systemd unit files for your pods and/or containers.
Once generated and enabled, your pods/containers act as systemd services that can be started, stopped etc.
[0]: https://docs.podman.io/en/latest/markdown/podman-generate-systemd.1.html https://docs.podman.io/en/latest/markdown/podman-generate-sy...
- 2OEH8eoCRo0 4y agoYup. I use this for all my home server services like Plex, Adguard, etc. I reboot my machine after kernel updates and everything comes up flawlessly.
- markonen 4y agoThis is no longer necessary as of Podman 3.3 or so--there's a single Podman systemd unit that will launch all containers that have restart=always.
- born2discover 4y agoInteresting! Do you have by any chance a link the documentation about it, because so far all I could find are links to information about `podman generate systemd`.
- buzzert 4y agoThat's awesome, I didn't know about that. Looks like the service is called podman-restart.service on my system.
- deno 4y agoThis generator has even better systemd integration: https://github.com/containers/quadlet https://github.com/containers/quadlet