Zero To One

Exiting due to PROVIDER_DOCKER_NEWGRP: "docker version --format -" exit status 1 오류 본문

컨테이너 오케스트레이션

Exiting due to PROVIDER_DOCKER_NEWGRP: "docker version --format -" exit status 1 오류

Zero_To_One 2022. 4. 22. 12:15

미니큐브를 start하는데 오류가 발생했다.

> kubectl apply -f simple-pod.yaml
Unable to connect to the server: dial tcp 192.168.94.2:8443: connect: no route to host
> minikube start
😄  Ubuntu 20.04 의 minikube v1.25.2
✨  기존 프로필에 기반하여 docker 드라이버를 사용하는 중

💣  Exiting due to PROVIDER_DOCKER_NEWGRP: "docker version --format -" exit status 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.24/version": dial unix /var/run/docker.sock: connect: permission denied
💡  권장: Add your user to the 'docker' group: 'sudo usermod -aG docker $USER && newgrp docker'
📘  문서: https://docs.docker.com/engine/install/linux-postinstall/

해결법

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world