问题描述
windows minikube start error : panic: runtime error: invalid memory address or nil pointer dereference
出现该问题的原因在于压缩包 tarball 文件不存在导致的。
The line in our code is:
err = tarball.Write(tag, img, &tarball.WriteOptions{}, f)
The line in tarball.Write is:
cfgName, err := img.ConfigName()
This says to me that img is probably nil in this case. I'll add a nil check in to avoid the panic. In the mean time, could someone provide the output of:
minikube start -v=1 --alsologtostderr
The additional logging would help you figure out which image is failing to be looked up.
解决思路
minikube start --image-registry="registry.cn-hangzhou.aliyuncs.com/google_containers"
参考链接
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!