Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock

The user jenkins needs to be added to the group docker: Then restart Jenkins. Edit If you arrive to this question of stack overflow because you receive this message from docker, but you don’t use jenkins, most probably the error is the same: your unprivileged user does not belong to the docker group. You can … Read more