这个docker0的IP经常被用成server端的IP,导致client没法连
认证0级讲师
Isn’t the correct solution to specify the IP address range of docker0 or specify bind when listening?
ifconfig docker0 downservice network restart
ifconfig docker0 down
service network restart
NetworkManager off
I won’t tell you how to turn it off.
Just telling you that the root is actually here:
Quoted from: Docker container fixed IP allocation
我们在使用docker run创建Docker容器时,可以用--net选项指定容器的网络模式,Docker有以下4种网络模式: host模式,使用--net=host指定。 container模式,使用--net=container:NAME_or_ID指定。 none模式,使用--net=none指定。 bridge模式,使用--net=bridge指定,默认设置。 默认选择bridge。
The bridge automatically created when installing docker has not been deleted
Docker -d --bridge=none will not create the bridge docker0
Isn’t the correct solution to specify the IP address range of docker0 or specify bind when listening?
ifconfig docker0 down
service network restart
NetworkManager off
I won’t tell you how to turn it off.
Just telling you that the root is actually here:
Quoted from: Docker container fixed IP allocation
The bridge automatically created when installing docker has not been deleted
Docker -d --bridge=none will not create the bridge docker0