Use the DNS settings from the local machine.
DNS queries are going to 18.104.22.168 when executing a docker loign command.
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 22.214.171.124 - 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
- docker login
- Error dial tcp: lookup on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection