![]() I found few articles suggesting to add ‘jenkins’ user to ‘docker’ group but to my surprise I do not find any docker group on Mac or inside container. I have already added ‘jenkins’ user to sudo list but does not help. ![]() ![]() But switching to the ‘jenkins’ user throws the above error. When I connect to container as a root user, it works fine. But when running docker ps or any other docker commands it is throwing an error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get dial unix /var/run/docker.sock: connect: permission denied I did that, and installed docker CLI inside Jenkins’s container. While using Jenkins as a CI server and to build further images by running docker commands through it, I came to know that we have to bind mount /var/run/docker.sock while running the Jenkins images so it can access the docker daemon. I am using a Jenkins docker image and running it. ![]() I have installed docker on Mac and everything is running fine. Add jenkins user to docker group mac docker.sock location java lang runtimeexception socket not found var/run/docker sock could not change group /var/run/docker sock to docker group docker not found add user to docker group mac docker run as user docker run as root jenkins docker permission denied
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |