<p>I get the following message when I run the <code>skaffold dev</code> command:</p>
<blockquote>
<p>Build Failed. Cannot connect to the Docker daemon at unix:
///var/run/docker.sock. Check if docker is running.</p>
</blockquote>
<p>Tools versions:</p>
<ol>
<li>MacOS Desktop Docker: 4.13.0 (89412)</li>
<li>Kubernetes: v1.25.2</li>
<li>Skaffold: v2.0.0</li>
</ol>
<p>Docker runs correctly in fact I can create resources on the cluster and create containers with the docker-cli commands. I successfully launch both docker info and docker version.</p>
<p>The command <code>/Applications/Docker.app/Contents/MacOS/com.docker.diagnose check</code></p>
<p>reports</p>
<blockquote>
<p>&quot;No fatal errors detected.&quot;</p>
</blockquote>
<p>(all tests pass).</p>
<p>I also tried setting the <code>DOCKER_HOST</code> variable:
<code>DOCKER_HOST = /Users/&lt;my folder&gt;/.docker/run/docker.sock skaffold dev</code></p>
<p>Result:</p>
<pre><code>invalid skaffold config: error getting docker client: unable to parse docker host `/Users/&lt;my folder&gt;/.docker/run/docker.sock`
</code></pre>
<p>My Skaffold.yaml file</p>
<pre><code>apiVersion: skaffold/v3
kind: Config
metadata:
  name: test
build:
  local:
    push: false
  artifacts:
    - image: &lt;myimage&gt;
      context: &lt;folder&gt;
      docker:
        dockerfile: Dockerfile
manifests:
  rawYaml:
    - infra/k8s/deployment.yaml
</code></pre>
<p>How can I solve?</p>

Davide
<p>The solution was to set the variable DOCKER_HOST before launching the <code>skaffold dev</code> command:</p>
<pre><code>DOCKER_HOST=&quot;unix:///Users/&lt;you&gt;/.docker/run/docker.sock&quot; skaffold dev
</code></pre>
