Created
December 13, 2021 20:42
-
-
Save StarpTech/dad15544c501cd2df31fa3210b09694b to your computer and use it in GitHub Desktop.
Change docker network daemon defaults to avoid DNS collisions
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
#!/bin/bash | |
set -e | |
cat <<EOT >> /etc/docker/daemon.json | |
{ | |
"bip": "172.31.0.1/16", | |
"default-address-pools": | |
[ | |
{"base":"172.32.0.0/16","size":24} | |
] | |
} | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment