News for hackers. Stuff that matters.
Re:Quadlets might make me finally stop using Docker-compose ... by INTPenis on Tuesday September 26, 2023 @04:19AM (#37656103)
I started using quadlets for new system designs a month ago and I feel like I'm neck deep in it now.

My conclusion is that there is absolutely no reason to stop using docker-compose if your developers are comfortable running one command, on one file, in one git root.

Quadlets are basically docker compose, in systemd. They've finally done it, systemd has it all and now it even has docker compose. ;)

That's really all it is in practice. I'm going to continue using it because I'm a RHEL kinda guy, but don't make it up to be magic.

Re:Quadlets might make me finally stop using Docker-compose ... by cyberax on Tuesday September 26, 2023 @05:40AM (#37656794)
The next step: systemkubed.
Re:Quadlets might make me finally stop using Docker-compose ... by runiq on Tuesday September 26, 2023 @06:47AM (#37657343)
Nah, we got that already. Quadlet can handle k8s manifests.

https://man.archlinux.org/man/quadlet.5.en#Kube_units_%5BKub...

Re:Quadlets might make me finally stop using Docker-compose ... by INTPenis on Tuesday September 26, 2023 @07:12AM (#37657577)
Yes but when is someone going to add logic on top of this to make it a full blown distributed container orchestrator?

Could it be done with systemd and dbus? Can dbus be distributed among several systems like mmc on Windows? I have no idea, just some questions that popped into my head lately.

Re:Quadlets might make me finally stop using Docker-compose ... by alexlarsson on Tuesday September 26, 2023 @11:25AM (#37660744)
Re:Quadlets might make me finally stop using Docker-compose ... by INTPenis on Tuesday September 26, 2023 @11:57AM (#37661241)
Fett!
Re:Quadlets might make me finally stop using Docker-compose ... by sleepybrett on Tuesday September 26, 2023 @12:19PM (#37661590)
This might be nice, I've seen a couple of teams that instead of using a local `kind` or other local cluster to test their continers they make a docker compose and then do a bunch of work turning that into kube manifests, then maintain them separately.
Re:Quadlets might make me finally stop using Docker-compose ... by broknbottle on Tuesday September 26, 2023 @12:17PM (#37661555)
Re:Quadlets might make me finally stop using Docker-compose ... by all2 on Tuesday September 26, 2023 @12:09PM (#37661436)
I've got a home server that runs docker compose as a service in systemd at startup.

I'm naive, whats the difference between doing that and using these "quadlets"?

Re:Quadlets might make me finally stop using Docker-compose ... by Dx5IQ on Friday September 29, 2023 @03:02AM (#37700222)
Why do you even need systems if you're using docker-compose? As long as your docker daemon starts up, docker compose can do the rest
Re:Quadlets might make me finally stop using Docker-compose ... by aaravchen on Thursday October 05, 2023 @12:02PM (#37780342)
I'm in a similar situation and I've been looking at quadlets a lot.

The approach is quite different from docker-compose and not really a substitute. It makes your individual containers into systemd services in an easier way than creating a unit file that calls `docker run`. But you still have to manually define networks in .network files, and configure all your dependencies in unit file syntax.

If you're very familiar with writing in systemd unit files, or really really want to use systemd to manage all container-related objects individually instead of having your container daemon do most of the work and a single compose file per group of related objects, you should consider switching. But in my experience there's little to be gained, a LOT to be lowt, and a lot of work to do the switch.

Re:Quadlets might make me finally stop using Docker-compose ... by otabdeveloper4 on Wednesday September 27, 2023 @05:15AM (#37672161)
> finally

Systemd had dependencies between services and containers since forever.

The only difference here seems to be podman instead of systemd-nspawn.