Skip to content Skip to footer
Quadlet: Running Podman containers under systemd by gjvc

Quadlet: Running Podman containers under systemd by gjvc

11 Comments

  • Post Author
    brirec
    Posted March 24, 2025 at 2:47 am

    It’s funny to me that this post calls out Podman-Compose as “not actively maintained” with its last commit being 5 months ago, then turns around to recommend Podlet (whose last commit was…5 months ago) as an alternative.

    Podlet can be useful and helpful, but ultimately it doesn’t support many of the features of Docker Compose and doesn’t always provide a clean translation. In particular, Podlet doesn’t support stacking multiple yaml files (e.g., -f docker-compose.yml -f docker-compose.override.yml)

  • Post Author
    stryan
    Posted March 24, 2025 at 2:52 am

    Quadlet is one of the best things to have come out of Podman and I highly recommend anyone curious about Podman or switch to container-based workloads to check them out. Being able to slot containers in and treat them like essentially any other system service feels great, plus I don't have to learn some extra orchestration layer to get them to work together or depend on non-container resources. I can just write the same systemd units I'm already writing. The auto-updating and service restart/notify on failure/etc is just icing on the cake. I've seen the equivalent Docker versions before and they're awful; giant messy run commands to try to work around the Docker daemon and half the time you end up with phantom services and containers anyway. Quadlet's end up being much cleaner; plus it means your whole setup (besides volume contents) exists with your other systemd units (/etc/systemd/, .config/systemd, /usr/local/lib/systemd, etc) so it's easy for backups.

    The only downside is they're not really an answer to docker-compose on the local development side and the podman team doesn't seem super interested in tackling that segment. User containers are nice for long running local test infra (i.e. a background database) but are too clunky for a normal compile-> docker compose up -> test -> docker compose down loop. The best answer is either .kube Quadlets (kubernetes plays) or using docker compose [0] against the podman socket.

    Either way, I've enjoyed using quadlets enough that I've spent the last few months writing a gitops tool for managing them in my spare time. They just feel like the right way of managing containerized servers.

    [0] NOT podman-compose, which the article points out as being not very good and under-developed. Podman implements most of the compose spec so you can use docker compose for most situations. I suspect many people who tried Podman when RH first started pushing it ran into Podman 3 being kinda of bleh and podman-compose being awful and bounced off it.

  • Post Author
    bityard
    Posted March 24, 2025 at 3:54 am

    I think I understand that quadlets are containers managed by systemd. But I'm still in the dark about why they are called that, or why they need a special opaque name.

  • Post Author
    udev4096
    Posted March 24, 2025 at 4:45 am

    docker compose is way too good to be fiddling around with alternatives. Podman is nice but the quadlet solution doesn't even come close to what docker compose offers

  • Post Author
    muti
    Posted March 24, 2025 at 5:16 am

    I wanted to try something different when I reset my self host set up several years ago, and went with openSUSE MicroOS. Ultimately it has led to podman containers running under systemd/quadlet and I'm quite happy with the current set up.

    Containers auto update with built in podman tooling, getting at logs and monitoring is through the usual systemd tools. When I need to change something, it's easy to work out where the config files are if I have forgotten and they are easy to read and change. Rootless and daemonless is nice too.

    I tried a few things along the way, podman compose felt clunky so I'm glad it is deprecated and it's clear quadlets are the way to go.

    There was a learning curve and there's less information out there than with docker, so keep that in mind. I would still lean towards docker and docker compose for local dev to bring a stack of services up and down.

  • Post Author
    mati365
    Posted March 24, 2025 at 5:41 am

    If anyone interested – I made recently Ansible template for Quadlet deployment that shows how easy is it.

    GH: https://github.com/Mati365/hetzner-podman-bunjs-deploy

  • Post Author
    cvhc
    Posted March 24, 2025 at 5:45 am

    The format is clearer than podman generate systemd or kubernetes YAML. And the integration with systemd is great.

    What annoys me is Podman upstream doesn't offer a repo for Debian/Ubuntu. I was stuck at version 4.3.1 on Debian stable, missed many new features and eventually decided to go back to Docker compose.

  • Post Author
    alexellisuk
    Posted March 24, 2025 at 7:31 am

    Interesting to see Qualet on the front page of Hacker News. I don't think it has had enough attention. We had Ygal & Valentin from the project submit a guest post on how to run an inlets tunnel client (think of Ngrok/Cloudflared, but self-hosted without any SaaS limits) – https://inlets.dev/blog/2023/10/03/client-quadlet.html

    Rather than using [container] they used [kube] and were able to bring along standard Kubernetes YAML making it quite portable.

  • Post Author
    eulenteufel
    Posted March 24, 2025 at 8:38 am

    I really like quadlets as they enable using containers like normal system services.
    That said the UX for rootless containers does not play well with this conceptualization.

    Normally system services run as system users in the system systemd-session, but
    for rootless containers the services reside in the user systemd sessions of the system user. I'd love to be able to run rootless quadlets within the system session.

  • Post Author
    aprilfoo
    Posted March 24, 2025 at 8:39 am

    I'm happily using quadlets as a lightweight container orchestration tool for few months now and i also think it deserves more attention. RH is doing a great integration job pushing the systemd ecosystem.

    As many projects still only mention docker/compose, it would be great to have a community maintained quadlet store – something like https://github.com/dwedia/podmanQuadlets?

  • Post Author
    sunshine-o
    Posted March 24, 2025 at 9:01 am

    I have been trying to adopt Quadlet since before Covid if I remember correctly (it wasn't named Quadlet yet) because this is such a key piece of the puzzle.

    I kept using things like Docker Compose for simple services until now but it always felt like a temporary solution.

    So I try every year and every time I am not convince this thing is solid/polished enough yet. I am confident 2025 is gonna be a go according to the positive comments here.

    My sincere question is: why did it took about 10 years to have a basic working integration between the service manager and containers (and by containers I mean the way we run most non system services nowadays)?

    My intuition is there must be some ugly politics involved between IBM/Redhat, Systemd and some other actors but I can't figure it out….

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.