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 right way to make Docker go to VPN network?
I've tried docker run --net host to make docker share host network, it didn't help. Host can access VPN resources, docker container can't resolve their names..
docker run --net host
I had to restart docker after connecting host machine to VPN.
sudo systemctl restart docker docker start {name-of-container}
1.4m articles
1.4m replys
5 comments
57.0k users