chipmk / docker-mac-net-connect

Connect directly to Docker-for-Mac containers via IP address 🐳 💻
MIT License
402 stars 41 forks source link

Podman support #13

Open miklinux opened 2 years ago

miklinux commented 2 years ago

Hi @gregnr! Nice tool, very useful!

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

Thanks!

gregnr commented 1 year ago

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:

jasonmadigan commented 5 months ago

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!

gregnr commented 5 months ago

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.