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 e
·
在部署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
更多推荐
已为社区贡献1条内容
所有评论(0)