Docker Community Forums

Share and learn in the Docker community.

Docker for Mac DNS queries goto 8.8.8.8


(Cwolfinger) #1

Expected behavior

Use the DNS settings from the local machine.

Actual behavior

DNS queries are going to 8.8.8.8 when executing a docker loign command.

Information

On a corporate network where the DNS servers are set properly I can do the following:

issue a ping to an artifactory repository from my command prompt (success)
issue a ping from the moby instance (success)

I cannot run a docker login to the artifactory repository since it gets an error.

A pcap file shows that the queries hits 8.8.8.8 - which is all nice - but this server is not configured anywhere on the current networking settings on the connected network.

Steps to reproduce the behavior

  1. docker login
  2. Error dial tcp: lookup on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection

(Cwolfinger) #2

Forgot to add this is a fresh 1.12 rc4 install with all diagnostics ok.