Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexandreprates/a615f57f98eb44ec619e2ff39478cccf to your computer and use it in GitHub Desktop.
Save alexandreprates/a615f57f98eb44ec619e2ff39478cccf to your computer and use it in GitHub Desktop.
Change Docker default network to 192.168.1.5/24
cat <<EOS > /etc/docker/daemon.json
{
"bip": "192.168.1.5/24",
"fixed-cidr": "192.168.1.5/25",
"fixed-cidr-v6": "2001:db8::/64",
"mtu": 1500
}
EOS
systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment