泊坞窗错误-'名称已被容器使用' [英] docker error - 'name is already in use by container'
本文介绍了泊坞窗错误-'名称已被容器使用'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用以下命令运行 docker
注册表始终会引发错误:
Running the docker
registry with below command always throws an error:
dev:tmp me$ docker run \
-d --name registry-v1 \
-e SETTINGS_FLAVOR=local \
-e STORAGE_PATH=/registry \
-e SEARCH_BACKEND=sqlalchemy \
-e LOGLEVEL=DEBUG \
-p 5000:5000 \
registry:0.9.1
Error response from daemon: Conflict. The name "registry-v1" is already in use by container f9e5798a82e0. You have to delete (or rename) that container to be able to reuse that name.
如何防止此错误?
推荐答案
我对此也感到困惑。这里有两个相关的命令:
I got confused by this also. There are two commands relevant here:
docker run 在 new 容器中运行命令
docker start 启动一个或多个停止的容器
docker start Start one or more stopped containers
这篇关于泊坞窗错误-'名称已被容器使用'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文