Errors are reported as follows
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.39/containers/arduino-cli/json: dial unix /var/run/docker.sock: connect: permission denied
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Solution:
sudo gpasswd -a jenkins docker
sudo usermod -a G docker jenkins
chmod 777 /var/run/docker.sock
solve the problem
Read More:
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- [Solved] Docker Error: bad interpreter: Permission denied
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket
- ./get_datasets.sh Error: permission denied [How to Solve]
- [Solved] Jenkins-ERROR: Error cloning remote repo ‘origin‘
- [Solved] Docker startup container error: permission denied””: unknown.
- [Solved] CentOS build a docker error: job for docker.service failed….
- [Solved] SHELL Run Error: “-BASH: ./TEST.SH: /BIN/BASH^M: BAD INTERPRETER: NO SUCH FILE OR DIRECTORY”
- [Solved] Shell loop execute error: syntax error: bad for loop variable
- [Solved] Docker Startup Error: panic: runtime error: invalid memory address or nil pointer dereference
- Jenkins Error: code=exited, status=127 [How to Solve]
- [Solved] error during connect: This error may indicate that the docker daemon is not running
- How to Solve Vue Error: EACCES: permission denied
- Docker Pull Error: certificate signed by unknown authority
- [Solved] pod Error: back off restarting failed container
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition
- [Solved] Error while deploying HAP reported by Hongmeng deveco studio
- error: library dfftpack has Fortran sources but no Fortran compiler found
- [Solved] Docker Error: SyntaxError: Non-ASCII character ‘\xe5‘ in file xxx
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380