Docker Community Forums

Share and learn in the Docker community.

Access denied with jenkins user on MacOS

When i try to run docker commands on Jenkins on MacOS, i have an error “Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: permission denied”

I couldn’t find any docker group. Please your help

I know this might not be the best solution to the problem, but can you try and add this tu your run command / compose:

–group-add staff

user ‘jenkins’ is already in staff group