乐趣区

关于docker:docker清空网络配置

docker 网络 故障

雷同的 ip 绑定给了 两个 网卡,须要 清空 网络

 ip addr | grep 10.79
    inet 10.79.106.1/24 brd 10.79.106.255 scope global br-a0ebe04d1152
    inet 10.79.106.1/24 brd 10.79.106.255 scope global br-54c665d911c4

清空网络

ifconfig virbr0 down


ip addr | grep -B 3 10.79 | grep 'mtu 1500 qdisc' | awk '{print $2}' | grep -oE '[a-z0-9-]+' | xargs -I {}  ifconfig {} down

ip addr | grep -B 3 10.79 | grep 'mtu 1500 qdisc' | awk '{print $2}' | grep -oE '[a-z0-9-]+' | xargs -I {} brctl delbr {}


ip -br link | grep -i veth | awk '{print $1}' | awk -F '@' '{print $1}' | xargs -I {}  ifconfig {} down


ip -br link | grep -i veth | awk '{print $1}' | awk -F '@' '{print $1}' | xargs -I {} ip link del {}


ip -br link | grep -i veth | awk '{print $1}' | 





ifconfig docker0 down

brctl delbr cni0
bridge cni0 is still up; can't delete it

brctl delbr docker0
退出移动版