Skip to content

Instantly share code, notes, and snippets.

@BalajiTechs
Last active June 30, 2022 08:03
Show Gist options
  • Save BalajiTechs/40fbc02459f3cbe277f5c09fbf131620 to your computer and use it in GitHub Desktop.
Save BalajiTechs/40fbc02459f3cbe277f5c09fbf131620 to your computer and use it in GitHub Desktop.
Changing default docker bridge network cidr

Configure docker runtime

  1. Get network details ip a

  2. Create and Update config file for docker daemon

mkdir /etc/docker/
touch /etc/docker/daemon.json
cat > /etc/docker/daemon.json << EOF
{
"exec-opts": ["native.cgroupdriver=systemd"],
 "default-address-pools":
 [
 {"base":"10.10.0.0/16","size":24}
 ],
 "insecure-registries":["k8s-manager:5000"]
}
EOF
  1. Restart Docker runtime
systemctl restart docker
systemctl enable docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment