본문 바로가기
카테고리 없음

[Docker] jenkins에서 이미지 빌드 할 때 권한 오류 발생 시 해결 방법

by Allonsy 2021. 9. 29.
반응형

오류 메시지

msg="failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied"

 

원인

jekins 계정이 docker 그룹에 속해있지 않아서 권한이 없음

 

해결 방법

sudo usermod -a -G docker jenkins

반응형

댓글