Skip to content

Instantly share code, notes, and snippets.

@v0lkan
Last active September 3, 2022 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0lkan/055328c9cd0a5836ca4f2c53c1e03dca to your computer and use it in GitHub Desktop.
Save v0lkan/055328c9cd0a5836ca4f2c53c1e03dca to your computer and use it in GitHub Desktop.
Override Docker DNS

The easiest way is to edit or create an /etc/docker/daemon.json similar to the following:

{
  "iptables": true,
  "dns": ["1.1.1.1", "8.8.8.8"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment