←back to thread

180 points teleforce | 8 comments | | HN request time: 1.068s | source | bottom
1. infogulch ◴[] No.43685422[source]
Quadlets came up recently:

Quadlet: Running Podman containers under systemd (mo8it.com) | 298 points | 68 comments | https://news.ycombinator.com/item?id=43456934

Where do quadlets fit in the container management landscape?

Running individual services that would have been RPMs? Docker compose? K8s?

replies(3): >>43685503 #>>43687101 #>>43687187 #
2. WesolyKubeczek ◴[] No.43685503[source]
I run container sets (like you'd probably run with docker-compose) as systemd services using this.
replies(1): >>43685569 #
3. infogulch ◴[] No.43685569[source]
How do you manage and deploy it? Git a systemd directory?
replies(3): >>43685798 #>>43685826 #>>43686508 #
4. sc68cal ◴[] No.43685798{3}[source]
Ansible has support for quadlet creation in the containers.podman collection
5. WesolyKubeczek ◴[] No.43685826{3}[source]
It's my homeassistant setup. I run mosquitto, zigbee2mqtt, and homeassistant in it (everything they connect to is on the network, so no need to do USB access mumbo jumbo). I don't "manage" it; I have a yaml file (generated from running containers with "podman kube generate") in a directory along with volumes those containers need, and a file in /etc/containers/systemd pointing to that yaml file. That's it.

And once all peripherals are seen and run correctly, I don't "manage" it as long as it works.

6. c45y ◴[] No.43686508{3}[source]
It's just a ~/.config/containers/systemd/ folder for rootless containers, I stuff the whole thing in a git repo
7. pydry ◴[] No.43687101[source]
quadlets is an answer to the question "but what if we also threw a docker compose substitute into the systemd kitchen sink"?
8. steeleduncan ◴[] No.43687187[source]
> Running individual services that would have been RPMs?

Essentially this. Rather than adding anything on top of systemd (which is almost certainly running anyway) quadlets are a way of turning containers into systemd units, and directing systemd to run them

I think it is the lightest weight, but still convenient, way of running a container as a daemon, with all the pros and cons that implies