Last active
February 25, 2016 09:20
-
-
Save anthonydillon/e5e73ce931b603946fd4 to your computer and use it in GitHub Desktop.
Fix Docker's DNS
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
# To get the IPV4 IP | |
nmcli dev show | grep DNS | |
sudo vim /lib/systemd/system/docker.service | |
# Add dns flag to ExecStart | |
ExecStart=/usr/bin/docker daemon --dns 8.8.8.8 --dns 10.20.64.1 -H fd:// | |
sudo systemctl daemon-reload | |
sudo service docker restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment