Docker - 名称已被容器使用
Docker - 名称已被容器使用
使用以下命令运行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.
我如何防止这个错误?
admin 更改状态以发布 2023年5月21日