Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to configure Docker to use external DNS server
Either via
$ docker run --dns busybox nslookup
or edit your /etc/docker/daemon.json to have something like:
"dns": ["", ""]
then restart docker service
$ sudo systemctl docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment