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