Created
October 20, 2017 12:08
-
-
Save Evalle/7b21e0357c137875a03480428a7d6bf6 to your computer and use it in GitHub Desktop.
How to configure Docker to use external DNS server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Either via | |
$ docker run --dns 10.0.0.2 busybox nslookup google.com | |
or edit your /etc/docker/daemon.json to have something like: | |
{ | |
"dns": ["10.0.0.2", "8.8.8.8"] | |
} | |
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