I’ve just installed Docker Desktop on Macbook Pro, M1, MacOS Ventura 13.3.1. I ran: docker run -d -p 80:80 docker/getting-started
and got response:
Unable to find image 'docker/getting-started:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
This fails too: docker run --dns 188.8.131.52 busybox nslookup google.com
As does: docker run busybox nslookup google.com
I’ve tried changing the nameserver in /etc/resolv.conf to 184.108.40.206, added
"dns": ["220.127.116.11", "192.168.0.1"]
to ~/.docker/daemon.json - This prevented the engine from starting. I also tried the same with 18.104.22.168 instead of 22.214.171.124 but that didn’t work either.
I’ve turned off experimental features.
Reset to factory settings.
Purged all settings.
Tried 3 different wifi networks.
dnsmesq isn’t running.
The diagnostics said: everything passed except:
[FAIL] DD0038: is the connection to Docker working? HTTP GET https://login.docker.com: Get "https://login.docker.com": context deadline exceeded```
DNS should generally auto-populates based on your network ISP config.
if you still want to configure DNS on mac your you can do something like below
# macOS Notice
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
# To view the DNS configuration used by this system, use:
# scutil --dns
# SEE ALSO
# dns-sd(1), scutil(8)
# This file is automatically generated.
Thanks so much for your reply. I had already tried those settings into resolv.conf and it still wasn’t working. I have now fixed the issue by setting Google as the nameserver in the Settings/Network GUI. I added: