티스토리 뷰
CLOUD/CICD
GitLab CICD::: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
헐리 2021. 7. 14. 11:23$ docker container ls -a
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.24/containers/json?all=1: dial unix /var/run/docker.sock: connect: permission denied
에러 해결방법:
usermod -aG docker gitlab-runner
sudo service docker restart
이 명령어는 사용자를 docker group 에 포함시킨다.