본문 바로가기
IT/Tips

[docker] Got permission denied while trying to connect to the Docker daemon socket

by Jany 2021. 4. 14.
반응형

도커 실행시 permission denied 날 경우 해결 방법

docker pull 실행 시 permission 에러 가 발생한다.

[opc@dev-kafka akhq]$ docker pull tchiotludo/akhq
Using default tag: latest
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.26/images/create?fromImage=tchiotludo%2Fakhq&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

/var/run/docker.sock 퍼미션 변경으로 해결

[opc@dev-kafka akhq]$ sudo chmod 666 /var/run/docker.sock
반응형

댓글