#docker #kubernetes #container #orchestrator #microservice #infrastructure-as-code #devops #ci #cd

제목젠킨스 젠장2019-12-03 14:13
작성자

Started by user Mr.Yeon
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/practice
[Pipeline] {
[Pipeline] isUnix
[Pipeline] sh
+ docker inspect -f . python:3.5.1

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.40/containers/python:3.5.1/json: dial unix /var/run/docker.sock: connect: permission denied
[Pipeline] isUnix
[Pipeline] sh
+ docker pull python:3.5.1
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.40/images/create?fromImage=python&tag=3.5.1: dial unix /var/run/docker.sock: connect: permission denied
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE



처음에는 jenkins container에 docker를 깔았더니 docker.sock파일이 main docker daemon에서 사용하고 있어서 container 안에 있는 docker를 사용하지 못하였습니다. 그래서 docker run 시 v(volume)옵션을 이용해 docker.sock을 공유하게 설정한 후 jenkins container 안에 docker를 깔았는데 이번에는 permission denied가 나네요 ㅜㅜㅜㅜㅜㅜㅜㅜ 살려주세오 ㅜㅅㅜ
댓글