https://www.haoyizebo.com/posts/fd0b9bd8/#docker-connector
    https://www.cnblogs.com/luo-c/p/15830769.html

    1. For the first time, you can add all the bridge networks of docker to the routing table by the following command:
    2. docker network ls --filter driver=bridge --format "{{.ID}}" | xargs docker network inspect --format "route {{range .IPAM.Config}}{{.Subnet}}{{end}}" >> /usr/local/etc/docker-connector.conf
    3. Or add the route of network you want to access to following config file at any time:
    4. /usr/local/etc/docker-connector.conf
    5. Route format is `route subnet`, such as:
    6. route 172.17.0.0/16
    7. The route modification will take effect immediately without restarting the service.
    8. You can also expose you docker container to other by follow settings in /usr/local/etc/docker-connector.conf:
    9. expose 0.0.0.0:2512
    10. route 172.17.0.0/16 expose
    11. Let the two subnets access each other through iptables:
    12. iptables 172.17.0.0+172.18.0.0
    13. To have launchd start wenjunxiao/brew/docker-connector now and restart at startup:
    14. sudo brew services start wenjunxiao/brew/docker-connector
    15. Or, if you don't want/need a background service you can just run:
    16. sudo docker-connector -config /usr/local/etc/docker-connector.conf