I don’t really have anyone else to shout at about this, but it’s an amazing way to host services in rootless containers entirely in user space using systemd (systemctl --user
).
https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html
hell yeah! i moved my whole setup from docker to podman with systemd with quadlets. auto updates and everything. so smooth.
I love the concept too and I just hope it will catch on much more than this. To convert your compose files you could use Podlet. I’m also working on converting it to JavaScript(PodletJS) so it’s available in it-tools.
Go for Podlet though, really nice for command lines.
Sorry for all the links, I got overly excited 😆
I used podlet on my compose file. I was a little disappointed in the limitations, as a lot of things like variable interpolation isn’t available.
That said, the output made me wonder why I’ve waited! It was so much simpler than I imagined. It also helped demystify unit files a bit more.
They are generally pretty good but troubleshooting them is a pain. Quadlets are also a bit more more complex than Docker compose.
Note: User space includes root and anything not running in kernel space.
I’m definitely interested in your experience and why you came to those conclusions because I’m not sure I can agree on the primary points.
But I have to give you the note. Root is also user space (if privileged). I’ve barely ever done anything actually in kernel space, so I guess it’s easy for me to screw that up.
Ah yes, a fellow quadlet enjoyer. Cheers!
Did
$ /usr/lib/systemd/system-generators/podman-system-generator --user --dryrun
Also prove to be really valuable, too?
I didn’t use that! I had a docker-compose file and used podlet to translate (which took a little massaging due to it not supporting interpolations).
/usr/libexec/podman/quadlet --user --dryrun
was quite helpful though!
Nice, did the same for some services I run at home. Now in the process of migrating my stuff on my vps from docker compose to quadlets. It’s a bit more involved but worth the QoL stuff quadlets bring with them, like automatic updates and systemd integration. I’m curious, which is your Linux distro of choice to run your podman quadlets on?
Yeah, those are very convenient and much easier than having to deal with Kubernetes or such.
Yeah replacing my k3s -> microk8s -> k3s multi-month headache with like 5 basic quadlet files in an evening was so wonderful and a relief