From 1520aa21289b7aadab95fa6b30af1b6e297d5078 Mon Sep 17 00:00:00 2001 From: Krishna Date: Fri, 8 Mar 2024 08:30:23 -0800 Subject: [PATCH] checkstyle fix: readme removed http --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 4dbaece66..c6c59df74 100644 --- a/readme.md +++ b/readme.md @@ -125,7 +125,7 @@ docker ps --filter name=mypetclinic --filter status=running -aq | xargs docker s #### error The Jenkins pipeline stage docker/build throws an error when it tries to make mypetclinic image as below. ````` -ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied +ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied ````` #### solution My device is running with user 'krishna' and Jenkins service is running with the user 'jenkins'. Therefore, I need to grant the user 'jenkins' access to docker.sock and command follows