Docker Community Forums

Share and learn in the Docker community.

Hyper V Default Switch IP breaks container network communication

The Hyper V Default Switch IP changes between class B and C , so after each reboot you get 172.17.x.x or 192.168.x.x. That seems a well known “feature” of all windows 10 installations so far I could read.

My question is, why a running docker container - out of the box, without any additional docker network bridges - can’t communicate to the internet if the Hyper Default switch stays on 172.17.x.x

It works only if I got the 192.168.x.x. I assume the reason is, that the Docker default switch is also 172.x.x.x.

How can I configure a stable network for my running container configuration regarding the current behavior of the Hyper V Default switch on Windows 10?