Docker exposed port stops working when connected to a VPN Docker exposed port stops working when connected to a VPN docker docker

Docker exposed port stops working when connected to a VPN


I'm not exactly sure why, but it turns out that routes need to be fixed inside the container. In my case, the following command solves the issue:

ip route add 192.168.0.0/24 via 172.17.42.1 dev eth0

...where 172.17.42.1 is the IP of the docker0 interface on my host.Hopefully this is helpful to someone one day.