title: WSL - Can't login or pull image from an azure container registry
body: <p>I have set up <a href="https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly" rel="nofollow noreferrer">WSL</a>. And then installed docked following this <a href="https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly" rel="nofollow noreferrer">tutorial</a> and then installed azure cli.
  I can login from windows command line; but I cannot login to azure container registry by using the command below from bash</p>
  
  <pre><code>$ az acr login --name $ACRNAME 
  </code></pre>
  
  <p>I get the following error</p>
  
  <blockquote>
    <p>Error response from daemon: Get <a href="https://ACRNAME.azurecr.io/v2/" rel="nofollow noreferrer">https://ACRNAME.azurecr.io/v2/</a>:
    unauthorized: authentication required</p>
  </blockquote>
  
  <p>And also if i tried to pull the image by</p>
  
  <pre><code>$ docker pull ${ACRNAME}.azurecr.io/image_name
  </code></pre>
  
  <p>get the same error</p>
  
  <blockquote>
    <p>Error response from daemon: Get <a href="https://ACRNAME.azurecr.io/v2/" rel="nofollow noreferrer">https://ACRNAME.azurecr.io/v2/</a>:
    unauthorized: authentication required</p>
  </blockquote>
  
  <p>But i am able to see the list. The following command returns list</p>
  
  <pre><code>$ az acr repository list -n $ACRNAME
  </code></pre>
  
  <p>I have found <a href="https://github.com/docker/for-win/issues/958" rel="nofollow noreferrer">this closed issue</a> and change my machine DNS server to 8.8.8.8 but no progress. What am i missing?</p>