Docker配置默认网桥ip地址
本文最后更新于 1950 天前, 如有失效请评论区留言.
本文主要记录 docker 配置默认网络 ip 段
修改 docker 默认桥接网络 ip 段
cat > /etc/docker/daemon.json <<EOF
{
"registry-mirrors": ["https://dyucrs4l.mirror.aliyuncs.com"],
"bip": "169.254.0.1/24",
"max-concurrent-downloads": 10,
"log-driver": "json-file",
"log-level": "warn",
"log-opts": {
"max-size": "20m",
"max-file": "2"
},
"default-address-pools": [
{
"base": "100.250.0.0/16",
"size": 24
}
],
"storage-driver": "overlay2"
}
EOF
重启 docker
systemctl restart docker
参考文档 dockerd