dial unix /var/run/docker.sock: connect: permission denied #7566
Labels
co/docker-driver
Issues related to kubernetes in container
kind/support
Categorizes issue or PR as a support question.
needs-solution-message
Issues where where offering a solution for an error would be helpful
os/linux
Unable to Install Minikube:
$minikube start --driver=docker
minikube v1.9.2 on Ubuntu 19.10
✨ Using the docker driver based on existing profile
❗ 'docker' driver reported an issue: exit status 1
💡 Suggestion: Docker is not running or is responding too slow. Try: restarting docker desktop.
👍 Starting control plane node m01 in cluster minikube
🚜 Pulling base image ...
E0409 20:39:08.601665 24638 cache.go:114] Error downloading kic artifacts: error loading image: 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.24/images/load?quiet=0: dial unix /var/run/docker.sock: connect: permission denied
🤷 docker "minikube" container is missing, will recreate.
🔥 Creating Kubernetes in docker container with (CPUs=2) (0 available), Memory=2200MB (0MB available) ...
🤦 StartHost failed, but will try again: recreate: creating host: create: creating: create kic node: creating volume for minikube container: output 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.40/volumes/create: dial unix /var/run/docker.sock: connect: permission denied
: exit status 1
🤷 docker "minikube" container is missing, will recreate.
🔥 Creating Kubernetes in docker container with (CPUs=2) (0 available), Memory=2200MB (0MB available) ...
💣 Failed to start docker container. "minikube start" may fix it.: recreate: creating host: create: creating: create kic node: creating volume for minikube container: output 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.40/volumes/create: dial unix /var/run/docker.sock: connect: permission denied
: exit status 1
But when i use sudo it says:
minikube v1.9.2 on Ubuntu 19.10
✨ Using the docker driver based on user configuration
🛑 The "docker" driver should not be used with root privileges.
💡 If you are running minikube within a VM, consider using --driver=none:
📘 https://minikube.sigs.k8s.io/docs/reference/drivers/none/
Need Help to install minikube for Kubenetes
The text was updated successfully, but these errors were encountered: