ERROR: error while removing network: network net_default id has active endpoints

在部署fabric时,执行docker-compose -f docker-compose-peer.yaml down时报错ERROR: error while removing network: network net_default id 03df0cd31b56a4ab9b76970783fc896d9d04cec7deacd5e5d138eb351c630d3a has active endpoints

解决

///查看网络详情
[root@VM_16_5_centos first-network]# docker network inspect net_default
[
    {
        "Name": "net_default",	//参数一
        "Id": "03df0cd31b56a4ab9b76970783fc896d9d04cec7deacd5e5d138eb351c630d3a",
        "Created": "2019-07-08T17:43:58.037152286+08:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.20.0.0/16",
                    "Gateway": "172.20.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "e61b04e8d51f6b0dda01f44d628e971358cfba9263284aaa7ba2d45558b06418": {
                "Name": "peer0.org1.example.com",	//参数二
                "EndpointID": "ed235ad6d2e1b81258c5ba32a006a9c145c47d1840ac76b78bf6478ba6780c95",
                "MacAddress": "02:42:ac:14:00:02",
                "IPv4Address": "172.20.0.2/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

//断开网络,这里有两个参数 ,分别是上面标记的参数一和参数二
[root@VM_16_5_centos first-network]# docker network disconnect -f net_default peer0.org1.example.com
//然后就可以正常执行
[root@VM_16_5_centos first-network]# docker-compose -f docker-compose-peer.yaml down
  • 8
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值