https://www.haoyizebo.com/posts/fd0b9bd8/#docker-connector
https://www.cnblogs.com/luo-c/p/15830769.html
For the first time, you can add all the bridge networks of docker to the routing table by the following command:docker network ls --filter driver=bridge --format "{{.ID}}" | xargs docker network inspect --format "route {{range .IPAM.Config}}{{.Subnet}}{{end}}" >> /usr/local/etc/docker-connector.confOr add the route of network you want to access to following config file at any time:/usr/local/etc/docker-connector.confRoute format is `route subnet`, such as:route 172.17.0.0/16The route modification will take effect immediately without restarting the service.You can also expose you docker container to other by follow settings in /usr/local/etc/docker-connector.conf:expose 0.0.0.0:2512route 172.17.0.0/16 exposeLet the two subnets access each other through iptables:iptables 172.17.0.0+172.18.0.0To have launchd start wenjunxiao/brew/docker-connector now and restart at startup:sudo brew services start wenjunxiao/brew/docker-connectorOr, if you don't want/need a background service you can just run:sudo docker-connector -config /usr/local/etc/docker-connector.conf
