Skip to content

Instantly share code, notes, and snippets.

@StarpTech
Created December 13, 2021 20:42
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 StarpTech/dad15544c501cd2df31fa3210b09694b to your computer and use it in GitHub Desktop.
Save StarpTech/dad15544c501cd2df31fa3210b09694b to your computer and use it in GitHub Desktop.
Change docker network daemon defaults to avoid DNS collisions
#!/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