作者:sl51866 | 来源:互联网 | 2023-10-09 22:14
docker清空网络配置-docker网络故障相同的ip绑定给了两个网卡,需要清空网络ipaddr|grep10.79inet10.79.106.124brd10.79.106.
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