title: Azure Container Registry `docker login` does not work
body: <p>On attempt to login to Azure Container Registry with <code>docker login</code> command using Active Directory credentials I have faced the issue:</p>
  
  <p><code>Error response from daemon: Get https://myregistry.azurecr.io/v2/: unauthorized: authentication required</code></p>
  
  <p>It's maybe obvious thing, that there is a problem with permissions, but I could not find correct way to reach the goal.</p>
  
  <p>Please note that:</p>
  
  <p><code>az acr login --name myregistry</code> works perfectly fine, and after that I was able to upload my image, but due to specific situation, I need a solution for <code>docker login</code> command and auth with AD credentials.</p>
  
  <p>I tried to provide required permissons acrpull/acrpush/acrdelete to user using the following doc:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal" rel="noreferrer">https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal</a></p>
  
  <p>but with no luck - the same output.</p>
  
  <p>Is there any way to login to ACR with AD credentials using <code>docker login</code>?</p>