News for hackers. Stuff that matters.
Re:Docker for Mac Without Docker Desktop by amarshall on Friday January 28, 2022 @01:56PM (#30118843)
Podman works with docker-compose 1.x only and needs some finagling to work. I have this wrapper script as podman-compose

    #!/bin/bash
    
    set -e
    
    tmpdir=$(mktemp -d)
    port=$(podman system connection ls | grep -Eo 'localhost:\d+' | head -1 | cut -d: -f2)
    [[ -n $port ]] || exit 1
    ssh -fnNT -L"$tmpdir/podman.sock":/run/user/1000/podman/podman.sock -i ~/.ssh/podman-machine-default ssh://core@localhost:"$port" -o StreamLocalBindUnlink=yes
    export DOCKER_HOST="unix:///$tmpdir/podman.sock"
    docker-compose "$@"
    rm -r "$tmpdir"
Re:Docker for Mac Without Docker Desktop by ravenstine on Friday January 28, 2022 @04:20PM (#30120512)
This is exactly why I ditched Podman.

I really wanted to use it badly, but lacking an alternative to Docker Compose or compatibility with it in 2022 is unacceptable. Yes, there is technically a way you can orchestrate containers through configuration, and I don't remember what it was called, but I found it both difficult to use and learn. It's crazy to me that people wanted to develop an alternative to Docker... without a way to just configure and network containers with YAML or JSON.

Re:Docker for Mac Without Docker Desktop by amarshall on Friday January 28, 2022 @06:05PM (#30121722)
There are use-cases that Podman can be used for that don’t involve Compose (yes, even with orchestration). Likewise there are a lot of features Podman and family have that Docker does not. Historically rootless is the big one; Docker sort of has that now but it’s still not daemon-less.
Re:Docker for Mac Without Docker Desktop by hda111 on Saturday January 29, 2022 @07:30AM (#30125756)
What problems did you have running Docker-compose with podman? I am running both on a server without any problem. Fedora-like distros have a package podman-docker that make docker-compose work without workarounds.
Re:Docker for Mac Without Docker Desktop by matsemann on Friday January 28, 2022 @02:47PM (#30119439)
Afaik podman-compose doesn't support "docker compose run" to do one-off stuff in a new container? Is there some alternative?

I do it all the time now, have the entire dev flow dockerized. So I run tests, lints, fixers, migration etc all through docker compose.

Re:Docker for Mac Without Docker Desktop by amarshall on Friday January 28, 2022 @03:28PM (#30119895)
To be clear: this isn’t the actual podman-compose project, just a wrapper to make docker-compose work with podman-machine. That said, I just tried to do a run and it didn’t work. It’s not part of my workflow though so I haven’t encountered it before and thus haven’t really looked into it.
Re:Docker for Mac Without Docker Desktop by MonaroVXR on Friday January 28, 2022 @03:38PM (#30120036)
> Afaik podman-compose doesn't support "docker compose run" to do one-off stuff in a new container? Is there some alternative?

Minikube, no sarcasm. I'm also going to use Minikube.

Re:Docker for Mac Without Docker Desktop by als0 on Friday January 28, 2022 @05:45PM (#30121513)
Is this a short term issue or is nobody working on docker-compose 3.x compatibility?
Re:Docker for Mac Without Docker Desktop by amarshall on Friday January 28, 2022 @05:59PM (#30121670)
I assume you meant 2.x; Compose 2.x is only ~4 months old. I believe the intention of the Podman team is to abandon their podman-compose and work on compatibility with docker-compose 2.x going forward.
Re:Docker for Mac Without Docker Desktop by Macha on Friday January 28, 2022 @06:35PM (#30122006)
The version of the file format is different to the version of the CLI tool. Compose (the file format) 3.x was introduced with Compose (the tool) version 1.10 in 2017: https://github.com/docker/compose/releases/tag/1.10.0
Re:Docker for Mac Without Docker Desktop by amarshall on Friday January 28, 2022 @08:40PM (#30122890)
Oh. I was only talking about the program and the interface it uses with the underlying runtime. Compose 2.x expects the underlying tool to have a different API.