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

  • 相关阅读:
    搭建yum服务器
    linux 网卡
    yum安装包另存
    CentOS下VMware用桥接模式,静态ip上外网
    linux挂载硬盘以及卸载硬盘
    Word2010如何编辑好了直接发布csdn博文?
    【更新】用word文档来发布到csdn等博客上边免去一张张上传图片的烦恼
    在word上写博客直接发到CSDN
    word上传博客教程
    Word写博客-使用Word2013发布博文到博客园
  • 原文地址:https://www.cnblogs.com/bugbeta/p/10179804.html
Copyright © 2011-2022 走看看