[英]ddev: change ip range of docker bridge network ddev_default
is there a way to tell ddev not to use IP-Range 172.17.*.*
by default?有没有办法告诉 ddev 默认情况下不要使用 IP-Range 172.17.*.*
? This range is already used in my network.此范围已在我的网络中使用。 I already set my docker config in /etc/docker/daemon.json
to use the private range 192.168.222.*
The docker0 bridge is created with the 192.* address, but the docker network ddev_default
still is on that 172.17.* range.我已经在/etc/docker/daemon.json
设置了我的/etc/docker/daemon.json
配置以使用私有范围192.168.222.*
docker0 网桥是使用 192.* 地址创建的,但是ddev_default
网络ddev_default
仍然在那个 172.17.* 范围内.
I am using ubuntu linux 18.04我正在使用 ubuntu linux 18.04
It looks like the ip range is generated with an increment.看起来 ip 范围是用增量生成的。
I deleted the network and and have ddev create a new one.我删除了网络,并让 ddev 创建了一个新网络。
docker network remove ddev_default
ddev rm -R -O --stop-ssh-agent
ddev start
The next bridge got the ip 172.18.*
.下一个网桥获得了 ip 172.18.*
。 ... next 172.19.*
and so on. ... 下一个172.19.*
等等。
check the ip with: docker network inspect ddev_default
检查 ip: docker network inspect ddev_default
Although I didn't configure an IP range, deleting the network and have docker create n new one with a different ip range solved the problem for me.虽然我没有配置 IP 范围,但删除网络并让 docker 创建一个具有不同 IP 范围的新网络为我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.