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
'컨테이너 오케스트레이션' 카테고리의 다른 글
쿠버네티스 서비스타입 (0) | 2022.04.25 |
---|---|
쿠버네티스 자습서 (0) | 2022.04.22 |
Exiting due to GUEST_STATUS: state: unknown state "minikube": docker container inspect minikube --format=: exit status 1 에러 (0) | 2022.04.22 |
쿠버네티스와 컨테이너 오케스트레이션 정리 (0) | 2022.04.21 |
docker "minikube" container is missing, will recreate, The connection to the server localhost:8080 was refused 오류 (0) | 2022.04.21 |