ERROR: network harbor_harbor has active endpoints
docker-compose down
ERROR: network harbor_harbor has active endpoints
第一种:使用 docker network disconnect -f {network} {endpoint-name},
其中的 {endpoint-name} 可以使用命令 docker network inspect {network} 获得。
[root@test harbor]# docker network inspect harbor_harbor |grep Name
"Name": "harbor_harbor",
"Name": "harbor-jobservice",
"Name": "nginx",
"Name": "registry",
"Name": "harbor-db",
"Name": "harbor-adminserver",
"Name": "redis",
"Name": "harbor-ui",
docker network disconnect -f harbor_harbor harbor-jobservice
docker network disconnect -f harbor_harbor nginx
docker network disconnect -f harbor_harbor registry
docker network disconnect -f harbor_harbor harbor-db
docker network disconnect -f harbor_harbor harbor-adminserver
docker network disconnect -f harbor_harbor redis
docker network disconnect -f harbor_harbor harbor-ui
第二种:重启 Docker service:
service docker restart