<p>I'm new with Kubernetes and Azure. I want to Deply my application and I am floowing the microsoft tutorial about kubernetes. At first I have created the resouce group and ACR instance. When I try to login in ACR console show this error:
<code>Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</code></p>
<p>I'm using azure cli localy and I have docker running.</p>

<p>You can  try below options to connect ACR :</p>
<p>run az acr login first with the --expose-token parameter. This option exposes an access token instead of logging in through the Docker CLI.</p>
<pre><code>az acr login --name &lt;acrName&gt; --expose-token
</code></pre>
<p>Output displays the access token, abbreviated here:</p>
<pre><code>{
  &quot;accessToken&quot;: &quot;eyJhbGciOiJSUzI1NiIs[...]24V7wA&quot;,
  &quot;loginServer&quot;: &quot;myregistry.azurecr.io&quot;
}
</code></pre>
<p>For registry authentication, we recommend that you store the token credential in a safe location and follow recommended practices to manage docker login credentials. For example, store the token value in an environment variable:</p>
<pre><code>TOKEN=$(az acr login --name &lt;acrName&gt; --expose-token --output tsv --query accessToken)
</code></pre>
<p>Then, run docker login, passing 00000000-0000-0000-0000-000000000000 as the username and using the access token as password:</p>
<pre><code>docker login myregistry.azurecr.io --username 00000000-0000-0000-0000-000000000000 --password $TOKEN
</code></pre>
<p>you will get the below promt if you follow the above method :</p>
<pre><code>WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
</code></pre>
