Created
November 1, 2023 11:57
-
-
Save meysampg/e5009d78ae4e11e5856dc8106577770e to your computer and use it in GitHub Desktop.
Force docker and its daemon to use Shecan DNS addresses.
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
$ 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