Steps to reproduce the issue:
minikube start --driver=docker
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#
@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
@medyagh @afbjorklund
Looks working. Thank You.
Here is the fix to make it quick.
adduser developer
# password@7
usermod -aG sudo developer
su - developer
su - developer
# password@7
sudo groupadd docker
sudo usermod -aG docker $USER
- Re-Login or Restart the Server
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube
mv ./minikube /usr/local/bin/minikube
minikube start --driver=docker
docker ps
it worked for me, used above command
do not run the "minikube start" command with a root (sudo) privilege.
just run without root privilege.
this worked for me
Most helpful comment
@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