An Azure service that provides a registry of Docker and Open Container Initiative images.
When logging in with docker, be sure to use the ACR credentials and not the docker credentials.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to follow this tutorial to push a custom image to the azure container registry.
az acr credential show --resource-group $rg --name $registry --query passwords[0].value --output tsv az acr credential show --resource-group $rg --name $registry --query username --output tsv Why can I not login? Do I need to login to ACR to push? I don't need to login to ACR (or docker) if I do "acr build".
(5) Also, the second tutorial uses "samples"... I think this is the repository name and the first tutorial does not have a repository name. Is the use of a repository name like "samples" optional?
(6) I'd like to be able to see the docker push command in the first tutorial work for ACR. So far it works only when I'm using dockerhub instead of ACR.
Thanks
Siegfried
An Azure service that provides a registry of Docker and Open Container Initiative images.
When logging in with docker, be sure to use the ACR credentials and not the docker credentials.
This works
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
This does not work:
echo $DOCKERHUB_PASSWORD | docker login $registry.azurecr.io -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
But this works
docker login $registry.azurecr.io -u $ACR_username -p $ACR_password
I wish the tutorials would explain which credentials to use for "docker login".
Mystery solved!
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more