Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate image registries 'index.docker.io' found in the 'imageRegistryCredentials' of container group

[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>]

This was working for me until this morning with no apparent YAML changes. If I tweak the YAML to use local vs azure resources and use a local Docker context, the compose up works. The prior successful runs were removed with "compose down". I double checked the Azure subscription and there appear to be no Container Instances or Groups present in the resource group.

I can't seem to find any pertinent questions/solutions to this particular error regarding the Code="DuplicateImageRegistries".

like image 863
mohrin Avatar asked Oct 12 '25 18:10

mohrin


1 Answers

I have the same problem today . After a huge unsuccessful research I can deploy my container again after run docker logout.

$ docker logout
Removing login credentials for https://index.docker.io/v1/
like image 127
Javier Cruceño Avatar answered Oct 14 '25 21:10

Javier Cruceño