docker删除docker_gwbridge网桥

2018-12-27 07:41:04来源:博客园 阅读 ()

新老客户大回馈,云服务器低至5折

最后更新时间:2018年12月26日


使用命令:docker network rm docker_gwbridge 提示无法删除。

[root@localhost ~]# docker network rm docker_gwbridge
Error response from daemon: network docker_gwbridge has active endpoints
 
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
     link/ether 00:0c:29:e9:a5:c2 brd ff:ff:ff:ff:ff:ff
     inet 192.168.6.156/24 brd 192.168.6.255 scope global ens192
        valid_lft forever preferred_lft forever
     inet6 fe80::d7e3:4c22:4ba:950d/64 scope link
        valid_lft forever preferred_lft forever
     inet6 fe80::6187:a9b7:eee4:48a8/64 scope link tentative dadfailed
        valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
     link/ether 02:42:41:d6:77:41 brd ff:ff:ff:ff:ff:ff
     inet 172.101.19.1/24 scope global docker0
        valid_lft forever preferred_lft forever
     inet6 fe80::42:41ff:fed6:7741/64 scope link
        valid_lft forever preferred_lft forever
4: flannel0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1472 qdisc pfifo_fast state UNKNOWN qlen 500
     link/none
     inet 172.101.19.0/16 scope global flannel0
        valid_lft forever preferred_lft forever
     inet6 fe80::1e61:e93a:55f0:6d32/64 scope link flags 800
        valid_lft forever preferred_lft forever
35: docker_gwbridge: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
     link/ether 02:42:a6:ed:fd:ae brd ff:ff:ff:ff:ff:ff
     inet 172.18.0.1/16 scope global docker_gwbridge
        valid_lft forever preferred_lft forever
     inet6 fe80::42:a6ff:feed:fdae/64 scope link
        valid_lft forever preferred_lft forever


使用以下命令删除:

docker swarm leave
docker network rm docker_gwbridge
service docker restart


参考

https://success.docker.com/article/how-do-i-change-the-docker-gwbridge-address

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Linux进程僵死原因排查思路

下一篇:49.Linux-wpa_cli使用之WIFI开启,扫描热点,连接热点,断开热点,WI