user16476339
user16476339

Reputation:

Minikube restarts forever

I have an issue. I typed the minikube start command and it stuck. What should I do? Is deleting minikube the only solution?

Restarting existing docker container for "minikube" 

Upvotes: 2

Views: 2210

Answers (3)

szx
szx

Reputation: 6946

I had the same problem with starting minikube on a Linux (Ubuntu) machine. Restarting the Docker service helped me:

minikube stop
sudo systemctl restart docker
minikube start

Upvotes: 0

windynova
windynova

Reputation: 51

You can try sudo minikube delete to delete the container first, then minikube start and see if the issue is fixed or not.

Upvotes: 5

Mikołaj Głodziak
Mikołaj Głodziak

Reputation: 5287

You have provided too little information to conclusively solve your problem. But one way is to actually delete the minikube and restart. You can see this similar question. Make sure that you have proper privileges to run docker containers.

Generally, this problem occurs quite often on Ubuntu. You can find very extensive thread on github.

In addition to the Restarting existing docker container for "minikube", you should also get some other information (like specific error). If they are insufficient, you can always open an issue on github.

In the thread above you can find a couple of potential solutions. Here is one of them:

When I run minikube --start --driver=docker --alsologtostderr, I get the same error message with "no such file or directory".

Edit: I was able to fix this by changing to .deb docker instead of snap docker.

Per https://kubernetes.io/docs/tasks/tools/install-minikube/:
"If you're using the none driver in Debian or a derivative, use the .deb packages for Docker rather than the snap package, which does not work with Minikube. You can download .deb packages from Docker."

I did $ snap remove docker, then followed these instructions:
https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

Maybe the error messages could be amended to tell this to the user?

Upvotes: 1

Related Questions