使用以下命令运行 docker
注册表总是会引发错误:
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.
我怎样才能防止这个错误?
原文由 Rubytastic 发布,翻译遵循 CC BY-SA 4.0 许可协议
我也被这个弄糊涂了。这里有两个相关的命令: