docker-mac-net-connect icon indicating copy to clipboard operation
docker-mac-net-connect copied to clipboard

Podman support

Open miklinux opened this issue 3 years ago • 3 comments

Hi @gregnr! Nice tool, very useful!

Just wondering: how difficult would it be to make it work with podman?

Thanks!

miklinux avatar Jun 24 '22 16:06 miklinux

Hey @miklinux! Apologies for the delay. My experience with podman has been very brief so far. Looks like podman runs on macOS via a QEMU VM. So in theory we should be able to more or less perform the same steps from Docker Desktop for podman, with the difference of connecting to podman's REST API instead of Docker Desktop's. In fact, it looks like podman hosts a Docker-compatible REST API, which would make this even easier.

Some things to sort out/confirm:

  • How hard is it to connect to the podman API (assuming via unix socket?)
  • Does podman's Linux VM support Wireguard (assuming yes if modern kernel)
  • We may have to re-route VM-to-macOS connection to host.containers.internal instead of host.docker.internal

gregnr avatar Apr 14 '23 21:04 gregnr

Have been hacking away at this recently to enable Podman support:

https://github.com/jasonmadigan/podman-mac-net-connect

With so many Podman specific changes (it was getting unwieldy), we ended up doing a light fork based atop of main. The two should place nicely with one another. Hope this helps others, and thanks to @gregnr for starting this project - have been using it happily for years now!

jasonmadigan avatar Mar 28 '24 17:03 jasonmadigan

Nice work @jasonmadigan 🚀 Did you find you had to do much more than mentioned above? Would be great to upstream if you are open to it.

gregnr avatar Mar 28 '24 20:03 gregnr