zoukankan      html  css  js  c++  java
  • docker删除docker_gwbridge网桥

    最后更新时间: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

  • 相关阅读:
    程序员是这样区分Null和Undefined
    JavaScript实现
    获取页面中任意一个元素距离body的偏移量
    js检测数据类型的方法你都掌握了几个?
    处理浏览器兼容你最喜欢用哪种方式
    算法竞赛入门经典 第四章 学习笔记 1
    算法竞赛入门经典 程序4-1 组合数
    算法竞赛入门经典 例题3-1 TeX中的引号
    算法竞赛入门经典 第3章 数组和字符串 学习笔记 3
    算法竞赛入门经典 第3章 数组和字符串 学习笔记 2
  • 原文地址:https://www.cnblogs.com/bugbeta/p/10179804.html
Copyright © 2011-2022 走看看