Skip to content

Instantly share code, notes, and snippets.

@anthonydillon
Last active February 25, 2016 09:20
Show Gist options
  • Save anthonydillon/e5e73ce931b603946fd4 to your computer and use it in GitHub Desktop.
Save anthonydillon/e5e73ce931b603946fd4 to your computer and use it in GitHub Desktop.
Fix Docker's DNS
# 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