Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Created August 7, 2018 06:20
Show Gist options
  • Save yuvalif/be8e6b560598834d88ac864cbb1b70e9 to your computer and use it in GitHub Desktop.
Save yuvalif/be8e6b560598834d88ac864cbb1b70e9 to your computer and use it in GitHub Desktop.

Check the DNS server name:

cat /etc/resolv.conf

Add the following line to the docker conf file:

echo "OPTIONS='--dns=10.0.0.10 --dns=10.0.0.11 --dns-search=example.com'" >> /etc/sysconfig/docker

Restart docker:

systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment