How to make a transparent proxy on macOS with Docker instead of Virtualbox?

519 Views Asked by At

There is a github project VRouter which make Openwrt image as an vbox on macOS and routing the traffic to the NIC of the virtual machine as a transparent proxy. I would like to know that is it possible to do these things o with docker? As fas as I know, docker for mac actually run inside a virtual machine on mac and there is no docker0 NIC on macOS. I found a project tuntaposx and a tuntap support shim installer for Docker for Mac docker-tuntap-osx which make it access docker container inside the virtual machine from macOS instead of publish ports possible. But What's the next step? I am quite confused about network issue. Can someone give me a hint about it?

1

There are 1 best solutions below

1
On

Docker requires a Linux host to run. It's unlikely it will ever directly support MacOS, or Windows, without some kind of VM running.

Docker isn't a virtual machine. It uses various features of the Linux kernel to essentially simulate a virtual server, but it isn't actually doing full virtualization.