News for hackers. Stuff that matters.
Re:Quadlet: Running Podman containers under systemd by jeppester on Monday March 24, 2025 @01:35AM (#43457989)
The trick for development is to enable the podman socket (for the user for rootless containers) and then use the standalone version of docker-compose.
Re:Quadlet: Running Podman containers under systemd by arcanemachiner on Monday March 24, 2025 @04:55AM (#43458743)
I haven't touched this subject for a couple years now, but I remember that this feature was broken for a while after Compose was rewritten (in Go?).

Can anyone share their experience with Podman + Docker Compose in recent times? It was a really great workflow for me at the time.

Re:Quadlet: Running Podman containers under systemd by jeppester on Monday March 24, 2025 @06:39AM (#43459367)
I use it every day, it has been working flawlessly for me for ~2 years.
Re:Quadlet: Running Podman containers under systemd by robohoe on Monday March 24, 2025 @08:27AM (#43460233)
Just make sure you’re using a relatively new version of Podman, v3 had some issues with sockets on Debian and CentOS
Re:Quadlet: Running Podman containers under systemd by sureglymop on Monday March 24, 2025 @08:40AM (#43460369)
It works perfectly fine if you install docker but just the CLI (e.g. on debian docker provides a package for that in their deb repository).

Then you can use docker contexts to make the default context your podman socket. Then you just use `docker compose` as you normally would. I usually use this with rootless podman installs.

Re:Quadlet: Running Podman containers under systemd by gm678 on Monday March 24, 2025 @09:08AM (#43460643)
I've been looking for a better solution for local dev on services deployed via quadlet, could you elaborate on this?

I just took a look at the socket activation docs[0]. Is my understanding correct that no `compose.yaml` is required, just running `docker-compose up` with the appropriate env var pointing to the socket is enough to trigger a connection and service activation?

[0] https://github.com/containers/podman/blob/main/docs/tutorial...

Re:Quadlet: Running Podman containers under systemd by jeppester on Monday March 24, 2025 @09:37AM (#43460915)
That is exactly what I do.

As far as I remember my podman installations on both fedora and ubuntu came with a podman.socket service that I could enable as easily as running: `systemctl --user enable --now podman.socket`

Then I installed the standalone version of docker-compose: https://docs.docker.com/compose/install/standalone/

I don't remember having to do more to get a working `docker-compose` command.