I’m trying to use Docker on Windows while being connected to VPN.
When VPN is not connected, everything works OK.
But when I connect to our corporate VPN using Cisco AnyConnect client, network inside docker container is not working anymore:
docker run alpine ping www.google.com ping: bad address 'www.google.com' docker run alpine ping -c 5 18.104.22.168 PING 22.214.171.124 (126.96.36.199): 56 data bytes --- 188.8.131.52 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss
How to fix this issue and make it work?
My setup is:
- Windows 10 Version 1809 (OS Build 17763.1098)
- Docker Desktop Community 184.108.40.206 (43472): Engine 19.03.8, Compose 1.25.4, Kubernetes 1.15.5, Notary 0.6.1, Credential Helper 0.6.3
- Docker is in Windows containers mode with experimental features enabled (needed to run windows and linux images at the same time)