docker启动报错Error response from daemon: endpoint with name gitlab already exists in network bridge

时间 : 20-05-28 栏目 : Java技术 作者 : 冰镇宝贝321 评论 : 0 点击 : 1,684 次

错误

Error response from daemon: endpoint with name gitlab already exists in network bridge


清理此容器的网络占用

格式:docker network disconnect --force 网络模式 容器名称

示例:docker network disconnect --force bridge gitlab


如果清除网络占用后,启动报

docker: Error response from daemon: Conflict. The container name "/gitlab" is already in use by container "98a83b26615c732c91a8ad6e4653122a9cc54a24de48f27081f803af2d75b84b". You have to remove (or rename) that container to be able to reuse that name.


则先删除已停止的容器

docker rm $(docker ps -a -q)

在清除一次网络占用

最后再启动就行了



本文标签 ,

除非注明,文章均为( 冰镇宝贝321 )原创,转载请保留链接: https://bkqv5.com/archives/481.html

docker启动报错Error response from daemon: endpoint with name gitlab already exists in network bridge:等您坐沙发呢!

发表评论




0