linux安装了docker之后,用ifconfig指令看多了一个docker0,怎么关掉?
PHP中文网
PHP中文网 2017-04-24 09:09:12
0
6
1019

这个docker0的IP经常被用成server端的IP,导致client没法连

PHP中文网
PHP中文网

认证0级讲师

reply all(6)
小葫芦

Isn’t the correct solution to specify the IP address range of docker0 or specify bind when listening?

迷茫

ifconfig docker0 down
service network restart

Peter_Zhu

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!