Docker container and host network VPN

前端 未结 3 1851
抹茶落季
抹茶落季 2020-12-29 19:37

I\'m trying to run docker image on MacOS with VPN turned on (TUN device). Docker container can access internet, but is not able to access resources behind vpn. What is the r

3条回答
  •  青春惊慌失措
    2020-12-29 20:11

    Had a similar problem. OP's solution worked, but so did simply restarting my docker vm:

    docker-machine restart $host
    

    Inspiration: https://www.reddit.com/r/docker/comments/39z4xd/when_my_docker_host_is_connected_to_vpn_i_can_no/

提交回复
热议问题