카테고리 없음
minikube 설치 중 오류
Dork94
2022. 9. 9. 01:25
에러
💣 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
시도 1 - 실패
sudo usermod -aG docker $USER && newgrp docker
setgroups: Operation not permitted
setgid: Operation not permitted
해결 방법
sudo chmod 666 /var/run/docker.sock
실행 결과
ubuntu@localhost: ~$ minikube start --driver=docker
😄 minikube v1.26.1 on Ubuntu 20.04
✨ Using the docker driver based on user configuration
📌 Using Docker driver with root privileges
👍 Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
💾 Downloading Kubernetes v1.24.3 preload ...
> preloaded-images-k8s-v18-v1...: 405.75 MiB / 405.75 MiB 100.00% 112.80
> gcr.io/k8s-minikube/kicbase: 386.60 MiB / 386.61 MiB 100.00% 19.07 MiB
> gcr.io/k8s-minikube/kicbase: 0 B [________________________] ?% ? p/s 16s
🔥 Creating docker container (CPUs=2, Memory=7800MB) ...
🐳 Preparing Kubernetes v1.24.3 on Docker 20.10.17 ...
▪ Generating certificates and keys ...
▪ Booting up control plane ...
▪ Configuring RBAC rules ...
🔎 Verifying Kubernetes components...
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟 Enabled addons: default-storageclass, storage-provisioner
💡 kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default