minikube: The "docker" driver should not be used with root privileges.
Steps to reproduce the issue:
minikube start --driver=docker
- Execute above command and you will see the error.
Full output of failed command:
root@fst-server-3-ubuntu-2gb-fsn1-1:~/faas-netes# minikube start --driver=docker --alsologtostderr
I0425 09:34:48.887475 24566 notify.go:125] Checking for updates...
I0425 09:34:48.999024 24566 start.go:262] hostinfo: {"hostname":"fst-server-3-ubuntu-2gb-fsn1-1","uptime":147613,"bootTime":1587652475,"procs":176,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"18.04","kernelVersion":"4.15.0-96-generic","virtualizationSystem":"","virtualizationRole":"","hostid":"0a8bb66d-63f8-47b9-b95e-6bb3ce32e001"}
I0425 09:34:48.999713 24566 start.go:272] virtualization:
π minikube v1.9.2 on Ubuntu 18.04
I0425 09:34:49.001356 24566 driver.go:245] Setting default libvirt URI to qemu:///system
β¨ Using the docker driver based on user configuration
I0425 09:34:49.140369 24566 start.go:310] selected driver: docker
I0425 09:34:49.140388 24566 start.go:656] validating driver "docker" against <nil>
I0425 09:34:49.140411 24566 start.go:662] status for docker: {Installed:true Healthy:true Error:<nil> Fix: Doc:}
I0425 09:34:49.140448 24566 start.go:1100] auto setting extra-config to "kubeadm.pod-network-cidr=10.244.0.0/16".
π 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/
root@fst-server-3-ubuntu-2gb-fsn1-1:~/faas-netes#
Full output of minikube start command used, if not already included:
root@fst-server-3-ubuntu-2gb-fsn1-1:~/faas-netes# minikube start
π minikube v1.9.2 on Ubuntu 18.04
β¨ Automatically selected the docker driver
π 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/
root@fst-server-3-ubuntu-2gb-fsn1-1:~/faas-netes#
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (1 by maintainers)
@medyagh @afbjorklund Looks working. Thank You.
Here is the fix to make it quick.
Add new User
Login to the newly created User
Add User to the Docker Group
Install Minicube
Start minikube with Docker Driver
Verify minikube Installation
@bhushankumarl running minikube with root user is not allowed, please create a new user, and run it with that user
make sure add that user to the docker group. https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
Another way I found from Docker forums without creating any new user.
Just run the following CMD:
minikube start --force --driver=dockerThis worked for me in Ubuntu machine.
I just run command
sudo usermod -aG docker $USER && newgrp dockeron Ubuntu , and it worked. Could see more details in this document manage-docker-as-a-non-root-userdo not run the βminikube startβ command with a root (sudo) privilege. just run without root privilege. this worked for me
Follow this command It will resolve your issue
sudo -E minikube start --driver=none
sudo minikube config set driver none
minikube start
if you use Linux Desktop OS with docker and minikube already installed, just run
sudo usermod -aG docker $USERand restart your computer. It worked for me.
it worked for me, used above command
this okay: