The Docker Engine default bridge network is conflicting with our internal network hosts access. How do I configure the default bridge (docker0
) network for Docker Engine to a different subnet?
You can configure the default bridge network by providing the bip
option along with the desired subnet in the daemon.json
(default location at /etc/docker/daemon.json
on Linux) file as follows:
在daemon.json文件中加入下述命令即可
{ "bip": "172.26.0.1/16"}
使用service docker restart重启docker 服务
使用ifconfig 命令查看网卡配置
Then restart the docker daemon (sudo systemctl restart docker
on systemd based Linux operating systems).
转载于:https://blog.51cto.com/zhangwl520/1961415