I have pushed an image to an azure repository correctly, and can see it in the portal. I can also pull with credentialed
dockeron my local computer afteraz acr login --name <registry>I have turned on "admin" in the portal, and can see a username "
<username>" and password, "<password>" for the registry- I have installed the
aztool (Azure CLI), and have stepped through the tutorials here:
Azure Container Instance Guide
- I have run the following command with every combination of user name and password I can think of, from my azure account to the registry admin pass, the second pass, no uid and pass, pre-logging in with
az acr login --name <registry name>, etc. - I have performed the same iterations from the Azure portal
In all cases, I receive an error: registry image is inaccessible, please check your credentials.
How do I access the registry and deploy to an instance in Azure?
Here is an anonymized command line example, wherein I use the admin login and password each time.
# image is fully qualified.
# image = server.azurecr.io/tag:version
(base) PS C:\...> az container create --resource-group group --name name \
--image image --cpu 1 --memory 1 \
--registry-login-server server.azurecr.io \
--registry-username server \
--dns-name-label label \
--ports 80
Image registry password: ...
The image 'image' in container group 'group' is not accessible.
Please check the image and registry credential.
# and a success with the same credentials
(base) PS C:\...> docker login server.azurecr.io
Username: server
Password: ...
Login Succeeded
server.azurecr.io/image:tag.