Docker Community Forums

Share and learn in the Docker community.

Docker networking in windows containers


(Nostupidquestion) #1

Hello Docker community,

My windows container can’t resolve websites like google.com or github.com.
My Windows Vm has three dns servers specified with a gateway and ipaddress, but when I docker run a windows container the ipaddress, defaultgateway change and an addition ip address is added to the list of dns servers. I know that windows containers dont use bridges but instead the nat adapter, but I have no idea where these new ip address are coming from. I have very limited knowledge networking but I believe these added ip addresses are causing the inability to resolve urls. I tryed running a container, manually changing the DNS servers and search suffix to what my windows vm has(my windows vm can resolve urls), but it still didn’t work.
Any help would great!

Thanks,

Ovven