Press "Enter" to skip to content

minikube无法启动问题,附解决方案

Last updated on 2022年7月25日

😄  minikube v1.26.0 on Ubuntu 22.04
✨  Automatically selected the docker driver
📌  Using Docker driver with root privileges
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
💾  Downloading Kubernetes v1.23.8 preload ...
    > preloaded-images-k8s-v18-v1...: 400.52 MiB / 400.52 MiB  100.00% 31.88 Mi
    > index.docker.io/kicbase/sta...: 0 B [_____________________] ?% ? p/s 1m9s
❗  minikube was unable to download gcr.io/k8s-minikube/kicbase:v0.0.32, but successfully downloaded docker.io/kicbase/stable:v0.0.32 as a fallback image
🔥  Creating docker container (CPUs=2, Memory=2200MB) ...
❗  This container is having trouble accessing https://k8s.gcr.io
💡  To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
🐳  Preparing Kubernetes v1.23.8 on Docker 20.10.17 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...

如上述情况,我的机器卡在 Booting up control plane ... 无法启动,使用的是当前最新版ubuntu、minikube、docker。

前置条件:

机器配置至少 2 Cpu + 4GB Ram,防止各种其他意外。

方案一:

停止、重新启动

minikube stop
minikube start

方案二:

删除原来镜像,使用国内镜像重新启动

minikube stop
minikube delete
minikube start --image-mirror-country='cn' 

或者直接指定镜像仓库为阿里云

minikube start --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers

方案三:

切换到指定版本启动,确实很奇怪,我就使用这个方案才成功。

https://github.com/kubernetes/minikube/issues/14477#issuecomment-1176188284

minikube stop
minikube delete
minikube start --kubernetes-version=v1.23.8
发表回复

您的电子邮箱地址不会被公开。

Captcha Code