在容器组的“imageRegistryCredentials”中找到重复的映像注册表“index.docker.io”

moh*_*rin 4 docker docker-compose azure-container-instances

[PS C:\Source\VelocityAzurev0.10.0\credentialagent-docker-compose> docker compose up
[+] Running 0/1
 - Group credentialagent-docker-compose  Error                                                                                                                                                                                          1.7s
containerinstance.ContainerGroupsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="DuplicateImageRegistries" Message="Duplicate image registries 'index.docker.io' found in the 'imageRegistryCredentials' of container group 'credentialagent-docker-compose'."
PS C:\Source\VelocityAzurev0.10.0\credentialagent-docker-compose>]
Run Code Online (Sandbox Code Playgroud)

直到今天早上,这对我来说一直有效,没有明显的 YAML 更改。如果我调整 YAML 以使用本地与 azure 资源并使用本地 Docker 上下文,则组合可以工作。先前成功的运行已通过“compose down”删除。我仔细检查了 Azure 订阅,资源组中似乎不存在容器实例或组。

我似乎找不到与 Code="DuplicateImageRegistries" 有关的此特定错误的任何相关问题/解决方案。

小智 5

我今天也有同样的问题。经过大量不成功的研究后,我可以在运行 docker logout 后再次部署容器。

$ docker logout
Removing login credentials for https://index.docker.io/v1/
Run Code Online (Sandbox Code Playgroud)