Podman Quadlets are so cool
-
Thank you for telling me about Podlet. I've been using
podman-compose
for all my containers but I've thought about converting them to systemd units. The only thing I'm unsure about is whether it'll still be easy to access the container files. Currently I have acontainers
folder with a folder for each service inside it. Inside that, there's thecompose.yml
and the folders with the container data. I map all container folders, with data that needs to be kept, to a folder that sits right next to the compose file. If it's just temporary data (like caches), I oftentimes map it to a volume because it doesn't matter if I lose it. Do you know if I can still do it like this (or in a similar way) if I use systemd units?The spec for quadlets has a few dedicated homes for the .pod, .container, etc. files. You can absolutely mount directories or files wherever (
%h
is$HOME
for systemd unit files). See the Volume description for Container unit files: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#volume -
I like them very much as well, only thing I'm annoyed about is that you always need to drag that
--user
option.... I mean, if I'm not using root or sudo, shouldn't it be clear that I'm talking about the user space?Agreed! That would be a huge QoL improvement (and work just like the podman command does). Now I'm thinking about other commands that force this silliness, like
pip
. -
Agreed! That would be a huge QoL improvement (and work just like the podman command does). Now I'm thinking about other commands that force this silliness, like
pip
.I'll probably just make an alias
-
If you want to use caddy as proxy for other containers running as quadlets have a look at this repo:
https://github.com/eriksjolund/podman-caddy-socket-activationIt certainly demystified some network shenanigans for me.
Just want to chime in here to say I use containerized caddy as a reverse proxy with quadlets and did nothing special.
-
I'm now running quadlets on Garuda (my gaming/devbox), and Fedora. The impetus for this was needing to host service in an unprivileged way at work on RHEL9, so I got paid to do some learning with my own services.
My laptop is running Bazzite, but no services there.
I'll move the server to silverblue or another image based distro when I finish extracting the rest of my misadventures to containers.openSUSE MicroOS is amazing
-
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 hate docker compose and find that much more complicated. It's a whole other structure that's essentially unneeded.
But I started with podman and not docker, so that's probably why
-
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
Agreed. Quadlets and podman are amazing.
-
Just want to chime in here to say I use containerized caddy as a reverse proxy with quadlets and did nothing special.
Absolutely possible if you keep the network setup simple. However, I run different sets of containers as different users, some of which also use services from the host itself (such as a PostgreSQL instance), and things quickly become more complex in these situations. The examples on the github helped me a lot to realise everything I wanted.
-
Absolutely possible if you keep the network setup simple. However, I run different sets of containers as different users, some of which also use services from the host itself (such as a PostgreSQL instance), and things quickly become more complex in these situations. The examples on the github helped me a lot to realise everything I wanted.
Gotcha, makes sense. Yeah my setup is very straightforward
-
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?ucore (soon to be cayo) on my home server!