Skip to content

Instantly share code, notes, and snippets.

@meysampg
Created November 1, 2023 11:57
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 meysampg/e5009d78ae4e11e5856dc8106577770e to your computer and use it in GitHub Desktop.
Save meysampg/e5009d78ae4e11e5856dc8106577770e to your computer and use it in GitHub Desktop.
Force docker and its daemon to use Shecan DNS addresses.
$ cat /etc/default/docker | grep "DOCKER_OPTS"
# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS="--dns 178.22.122.100 --dns 185.51.200.2"
meysam@freedom:~
$ cat /etc/docker/daemon.json
{
"dns": ["178.22.122.100", "185.51.200.2"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment