following response:
Error response from daemon: Get https://myserver.azurecr.io/v2/: unauthorized: authentication required
does ACR no longer allow Basic Auth and it's OAuth only?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for the question! We are investigating and will update you shortly.
@cmeyertons can you elaborate on what steps you are taking? I followed the doc as written and I was able to login to my ACR
@cmeyertons any update on this?
@cmeyertons I will close this for now. When ready let me know and we can reopen and continue.
I'm running
docker login -u myusername -p mypassword myserver.azurecr.io
my acr is currently set up under the Basic sku:
{
"adminUserEnabled": true,
"creationDate": "2018-10-18T12:31:43.691012+00:00",
"id": "/subscriptions/***/resourceGroups/***/providers/Microsoft.ContainerRegistry/registries/myserver",
"location": "centralus",
"loginServer": "myserver.azurecr.io",
"name": "myserver",
"provisioningState": "Succeeded",
"resourceGroup": "***",
"sku": {
"name": "Basic",
"tier": "Basic"
},
"status": null,
"storageAccount": null,
"tags": {},
"type": "Microsoft.ContainerRegistry/registries"
}
I was trying to get my registry open in the Docker explorer in VS code and was able to get around this issue by installing the Azure Account extension
@cmeyertons thanks for the update on this. You will always need to authenticate to Azure using Azure Account commands in order to communicate with your services.
If you have additional questions just let me know.
Huh? I’m a little confused as to the reasoning behind closing this issue on the docs.
The whole point of logging this issue was to fix the docs, which state to use docker login which you confirmed doesn’t work?
@cmeyertons apologies I was not clear.
I ran through the document and was able to login to my docker without using any Add Azure account commands. That being said, I am running it in CMD and not Visual Studio code.
To run actions against Azure resources using Visual Studio code you do need to have the azure extension installed. This is not just for ACR but for anything Azure. It is the same idea as installing Azure CLI which lets you manage your resources via command line or Azure PowerShell from a PS module. Visual Studio it is own program and needs to have its dependencies installed properly.
You absolutely can run commands using Visual Studio code however for all the docs we generally stick to CMD or PowerShell for simplicity.
Thank you for clearing up! Issue is good to close now, apologies for not understanding sooner. Long day at work!
@cmeyertons no worries! I should have been more clear with my explanation :)
If you think of any other questions don't please don't hesitate to reach out
I'm still getting the error. I'm kind of new to this environment. I'm deploying a node.js app to a container. I was able to successfully build the image on my local machine. As a next step i'm trying to push the image to ACR. I'm using the following command to login "docker login --username myusername myloginserver" and when prompted for password i used the password provided in the access keys section of the ACR resource in the azure portal. In powershell (not powershell ISE) i got the following error: "Error response from daemon: Get https://xxxxxxxxxxxx.azurecr.io/v2/: unauthorized: authentication required"
In command prompt: "Error response from daemon: Get https://xxxxxxxxxxxxxxx.azureacr.io/v2/: Service Unavailable"
In VScode terminal with Azure account extension installed i got the following error "Error response from daemon: Get https://salesforceintegrationcontainer.azureacr.io/v2/: Service Unavailable"
not sure what's going wrong. Any help is greatly appreciated.
Most helpful comment
I'm still getting the error. I'm kind of new to this environment. I'm deploying a node.js app to a container. I was able to successfully build the image on my local machine. As a next step i'm trying to push the image to ACR. I'm using the following command to login "docker login --username myusername myloginserver" and when prompted for password i used the password provided in the access keys section of the ACR resource in the azure portal. In powershell (not powershell ISE) i got the following error: "Error response from daemon: Get https://xxxxxxxxxxxx.azurecr.io/v2/: unauthorized: authentication required"
In command prompt: "Error response from daemon: Get https://xxxxxxxxxxxxxxx.azureacr.io/v2/: Service Unavailable"
In VScode terminal with Azure account extension installed i got the following error "Error response from daemon: Get https://salesforceintegrationcontainer.azureacr.io/v2/: Service Unavailable"
not sure what's going wrong. Any help is greatly appreciated.