ICYMI: Koen Vervloesem shows you how to run rootless Podman containers and seamlessly integrate them into systemd services
https://www.admin-magazine.com/Archive/2025/85/Run-rootless-Podman-containers-as-systemd-services?utm_source=mam
#Podman #containers #systemd #Docker #Quadlet #Linux
My #podman #container management journey continues...
I started with individual containers via podman run
.
Then I started managing them through #pods.
Now I'm managing the pods through #Quadlet
...So what's next?
Good blog post, basically sums up my current thoughts about the home lab. Kubernetes is nice, but overkill, and Podman+systemd and even further Quadlet can replace k8s really well on a single person scale.
Wish there was a good NGINX-based solution to mimic what ingress-nginx and cert-manager can do on k8s, not that it's that much work to handle a couple domains manually.
https://blog.yaakov.online/replacing-kubernetes-with-systemd/
#podman #systemd #quadlet #k8s
Well, this took a bit of investigative work but was ultimately successful. Now, for each service that I want to host I have an Ansible playbook that:
1. Creates a service-specific user that will run the rootless #podman container
2. Uploads the custom #quadlet `.container` unit file in said user's home
3. Use `machinectl` to interact with systemd as said user
As an example, I now have CoreDNS running as a rootless container as the `coredns` user via systemd/quadlet!
Just in case you didn't know (but I guess you specifically need docker-compose.yml syntax):
#Podman reuses SystemD to replace Docker Compose because SystemD has way more options, makes it easy to integrate containerized services with non-containerized ones and the host system. Podman includes a SystemD unit generator, #Quadlet, allowing you to manage files like .container, .image, .network, .build and more.
1/2
EDIT: J'ai trouvé cet article et j'ai compris et ça marche https://mo8it.com/blog/quadlet/
S'il y a des gens qui utilisent podman par ici j'ai une question parce que je comprends pas bien la doc.
J'ai un petit container sans root que je lance à la main avec podman start mon_container
quand j'en ai besoin et ça commence à devenir un peu redondant vu que je vais souvent sur mon ordi spécifiquement pour l'utiliser. Donc je cherche à le lancer quand j'ouvre ma session.
J'ai voulu générer une unit systemd avec la commande qui va bien mais j'ai vu qu'elle était dépréciée et qu'il était conseillé d'utiliser un "Quadlet" pour faire ça.
Sauf que mon cerveau percute pas du tout la doc officielle. C'est quoi un quadlet ? Comment je transforme mon container en quadlet ? Et comment je lance le quadlet au démarrage de ma session ?
Je prend toute explication/tuto écrit/tuto vidéo !
Huh, my (old-ish) post about #Podman #Quadlet apparently landed on the front page of Hacker News two days ago
https://news.ycombinator.com/item?id=43456934
I noticed it after seeing an unexpected spike in #OxiTraffic:
https://oxitraffic.mo8it.com
Quadlet: Running Podman containers under systemd
@mcrocker @davemq If you’re open to new paradigms, check out the #Quadlet https://podman-desktop.io/blog/podman-quadlet. And leverage podlet to migrate existing workloads to it https://github.com/containers/podlet. Assumes a sufficiently recent #podman