title: docker: command not found ( mac mini ) only happens in jenkins shell step but work from command prompt
body: <p>I'm facing this weird problem , struggling to solve since almost couple of days.</p>
  
  <p><strong>Working:</strong>
  On mac mini command prompt , I switch to jenkins user and can run docker command without any problem.</p>
  
  <p><strong>Not Working:</strong>
  but when I run a jenkins job , inside shell command step docker is not recognized. </p>
  
  <p>I'm getting error </p>
  
  <pre><code>docker: command not found
  
  docker --version
  </code></pre>
  
  <p>But mentioning explicit path of docker , does work</p>
  
  <pre><code>/Users/buildserver/Library/Group\ Containers/group.com.docker/bin/docker --version
  </code></pre>
  
  <p>Question : Why docker command can't look into correct path ?</p>
  
  <p>Permissions</p>
  
  <p>lrwxr-xr-x   1 buildserver  staff        71 Oct 14 10:44 docker -> /Users/buildserver/Library/Group Containers/group.com.docker/bin/docker</p>
  
  <p>jenkins uses is part of staff group.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Regards,
  Vikram</p>