title: is docker daemon running
body: <p>I am running jenkins container on kubernetes. for some reason, creating a pipeline that pulls dockerfile from bitbucket and builds an image gives me an error.
  The pull stage works fine, the problem is building the image. When I start the pipeline, I get an error saying, </p>
  
  <pre><code>Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  </code></pre>
  
  <p>I read all the answers and suggestions online but none of them helped.
  I tried setting up the global tools, I even added a <code>mountPath</code> to <code>docker.sock</code> in <code>values.yaml</code> file. 
  Is there anyone who knows how to fix this? Thanks in advance.</p>