-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "docker" driver should not be used with root privileges. #7903
Comments
@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. |
@medyagh @afbjorklund 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
|
it worked for me, used above command |
do not run the "minikube start" command with a root (sudo) privilege. |
if you use Linux Desktop OS with docker and minikube already installed, just run
and restart your computer. |
I installed minikube as debian package: (from https://minikube.sigs.k8s.io/docs/start/)
However,
Meaning only root could execute it. I fixed that by |
@mvolfik : that is unrelated to this issue, it was just a packaging error with the revision 2 (unfortunately) - it should be 755 |
I just run command |
this okay:
|
Follow this command sudo -E minikube start --driver=nonesudo minikube config set driver noneminikube start |
You don't need to run minikube with sudo. |
Another way I found from Docker forums without creating any new user. Just run the following CMD: This worked for me in Ubuntu machine. |
Give permission to the docker socket, and minikube should work as expected |
sudo usermod -aG docker $USER && newgrp docker - easy way to add permissions for our user. |
thanks |
Env: Ubuntu 22.04 on Virtual-Box Got error:
Then sudo usermod -aG docker $USER && newgrp docker
minikube start Problem solved~ |
Steps to reproduce the issue:
Full output of failed command:
Full output of
minikube start
command used, if not already included:The text was updated successfully, but these errors were encountered: