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
- [Solved] Docker startup container error: permission denied””: unknown.
- Kettle reported an error and did not have permission to write files to HDFS
- Vscode pylint reported an error of “no member”, but it is running normally
- [Solved] error during connect: This error may indicate that the docker daemon is not running
- [Solved] The Shell Script error: syntax error: “(” unexpected “)
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- [Solved] jenkins-deleteDir Error (FilePath is missing)
- Start Docker Quickstart Terminal error This computer is running Hyper-V. VirtualBox won’t boot a 64bits VM when Hyper-V is activated
- [Solved] CentOS build a docker error: job for docker.service failed….
- [Solved] docker Error: bridge docker0 failed: exchange full
- Jenkins Error: code=exited, status=127 [How to Solve]
- Using Jenkins to compile APK Error [How to Solve]
- Jenkins error: exception message 137
- The showdialog() method in thread/threading. Timer/task reported an error: “before ole can be called, the current thread must be set to single thread unit (STA) mode.”
- [Solved] Jenkins-ERROR: Error cloning remote repo ‘origin‘
- [Solved] Docker Error: SyntaxError: Non-ASCII character ‘\xe5‘ in file xxx