509
Every time I use podman
(lemmy.nz)
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
sudo in Windows.Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
Sounds like you are more interested in how the "house" was painted while I'm more focused on the construction materials and architecture.
If you truly don't care what the source code looks like or how it works internally, then we aren't even having the same conversation.
For sure, that's why I asked what you meant by "clean".
Ultimately, I'm a podman user, not a podman developer. So the interface and user experience matter a lot more to me than the internal architecture. Though architectural decisions to tend to affect the trajectory of a project as a whole, docker compose still seems to be holding up just fine.
I agree that ergonomics are also important, but for me not the top priority for me. For Podman, I like the way I can use Quadlet to quickly deploy and run containerized stuff.
However I really like it for building and running my own app stack pods. The combination of Quadlet and SystemD instance aliases is very powerful. I use this to drive all kinds of configuration automation.
Any cool examples? I'm still dipping my toes into systemd
The usage is simple. If you name a quadlet (or systemd service unit file) with an @ in it then you can use it. Like
foo@.containerthen anything you put between the @ and . is passed into the resulting unit file as %i.So
systemctl start foo@bar.servicewill pass 'bar' in where %i exists in the unit file. From there you can use it in a StartPreExec or whatever else to do instance specific stuff when the instance of the containerized service start.Like
ExecStartPre=/usr/local/bin/activate_config %ifor example. A contrived example but hopefully you get the idea: with one quadlet file and a little scripting you can start many instances of a service that each automatically pull in their own configs.That is cool. A creative use of their templates. Thanks for giving me some food for thought.