简书的编辑器说实话,真心不好用。不知道怎么插入shell或命令
不指定网络驱动时默认创建的bridge网络
docker network create default_network
查看网络内部信息
docker network inspect default_network
列所有列表的网络
docker network ls

移除指定的网络
docker network rm default_network
删除docker网络docker0
yum -y install bridge-utils
ifconfig docker0 down
brctl delbr docker0
-------------------------------------------------------------docker创建的网络容易引起路由问题,注意排查路由
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 ens32
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-d39f6982be3f
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 ens32
[root@localhost ~]#
网友评论