No momento em que vou subir o container aparece o seguinte erro:
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. Build step 'Execute shell' marked build as failure Finished: FAILURE
Started by user aluno alura Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/jenkins-todo-list-principal [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] Done The recommended git tool is: NONE using credential github-ssh Cloning the remote Git repository Cloning repository git@github.com:wallafi/jenkins-todo-listt.git
git init /var/lib/jenkins/workspace/jenkins-todo-list-principal # timeout=10 Fetching upstream changes from git@github.com:wallafi/jenkins-todo-listt.git git --version # timeout=10 git --version # 'git version 2.17.1' using GIT_SSH to set credentials github-ssh git fetch --tags --progress -- git@github.com:wallafi/jenkins-todo-listt.git +refs/heads/:refs/remotes/origin/ # timeout=10 git config remote.origin.url git@github.com:wallafi/jenkins-todo-listt.git # timeout=10 git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 Avoid second fetch git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision d90aeb4cb736d7f133797e3961ce05302cf2e493 (refs/remotes/origin/master) git config core.sparsecheckout # timeout=10 git checkout -f d90aeb4cb736d7f133797e3961ce05302cf2e493 # timeout=10 Commit message: "meu primeiro commit" git rev-list --no-walk d90aeb4cb736d7f133797e3961ce05302cf2e493 # timeout=10 [jenkins-todo-list-principal] $ /bin/sh -xe /tmp/jenkins6688571858409576622.sh
- docker run --rm -i hadolint/hadolint docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. Build step 'Execute shell' marked build as failure Finished: FAILURE
`