News for hackers. Stuff that matters.
Re:Quadlets might make me finally stop using Docker-compose ... by prmoustache on Tuesday September 26, 2023 @05:54AM (#37656904)
> Podman supposed to be drop-in replacement for docker but - last try (4 months ago) of podman to run our development docker containers fails to build so i think Podman is still far away from docker replacement.

I'd be curious what failed to build under podman. I have been using podman as a replacement for docker for the last 3 years and haven't found any blocker. Sometimes you can't reuse a docker-compose file shared by a third party project straight away without adaptation but if you know the difference between docker and podman you can build and run anything that also run on docker.

Re:Quadlets might make me finally stop using Docker-compose ... by magicalhippo on Tuesday September 26, 2023 @08:10AM (#37658091)
> Sometimes you can't reuse a docker-compose file shared by a third party project straight away without adaptation

So not a drop-in replacement then...

Re:Quadlets might make me finally stop using Docker-compose ... by prmoustache on Tuesday September 26, 2023 @08:30AM (#37658308)
4 points:

1. Most of the issues I had that forced me to adapt a docker-compose was because I was using podman rootless and most people build docker-compose file with docker running as root in mind. mostly to have access to privileged ports. I guess running podman under root would have solved this but one of the reason I switched to podman in the beginning was for the rootless capability. In a way this wasn't much different than modifying a deployment to work with docker in rootless mode.

2. part of the appeal of using podman is its compatibility with kubernetes yaml file so you tend to quickly switch away from docker-compose anyway. Also for self hosting, the systemd approach was more elegant, even before the quadlets support.

3. One would argue that docker-compose != docker/moby engine.

4. docker-compose has introduced breaking changes in its history which meant adapting your compose file or add flags at runtime such as `docker-compose disable-v2`

EDIT: adding points

Re:Quadlets might make me finally stop using Docker-compose ... by magicalhippo on Tuesday September 26, 2023 @11:52AM (#37661164)
Overall fair points, though I disagree with 3 since it's been integrated sufficiently (not a separate install and not a separate executable).
Re:Quadlets might make me finally stop using Docker-compose ... by kubanczyk on Wednesday September 27, 2023 @04:43PM (#37681036)
> 4. docker-compose has introduced breaking changes in its history

...until the point when they resigned any notion of versioning. You can't have a breaking change if you don't promise a stable behavior, see? /s

Not many people noticed that the top-level

    version "3.9"
has no effect anymore. "It is only informative", the current spec says. Your old docker-compose.yaml files spew errors as soon as they go out-of-sync with the master branch (classy!) of the spec repo.
Re:Quadlets might make me finally stop using Docker-compose ... by viraptor on Tuesday September 26, 2023 @08:14AM (#37658132)
Tbh, with the changes in the last few versions, you can't reuse some compose files even between different versions of docker, so... they're actually pretty comparable there.