启动容器失败:endpoint with name cop already exists in network host.

1. 具体报错

docker run 的时候报错了
docker: Error response from daemon: endpoint with name cop already exists in network host.

2. 解决办法

方法1:清理此容器的网络占用
docker network disconnect --force bridge XXX  # 我用这个不行

方法2:endpoint with name cop already exists in network host. # 名称为cop的端点已存在于网络主机中。
我这里给容器起的名字就是cop,启动就报错,然后我就把cop改成了em-cop就行了,就是换个名称。
posted @ 2021-03-10 10:20  三花  阅读(1406)  评论(0编辑  收藏  举报