问题描述
minikube安装后,执行任何minikube命令,均报下面的信息。
解决方法
确认docker是否运行
查看docker当前的context
$ docker context ls
NAME TYPE DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
default * moby Current DOCKER_HOST based configuration npipe:./pipe/docker_engine
desktop-linux moby Docker Desktop npipe:./pipe/dockerDesktopLinuxEngine
明确指定当前docker context
$ docker context use default
default
Current context is now "default"
$ docker context ls
NAME TYPE DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
default * moby Current DOCKER_HOST based configuration npipe:./pipe/docker_engine
desktop-linux moby Docker Desktop npipe:./pipe/dockerDesktopLinuxEngine
然后再执行minikube命令,发现上面的提示已经没有了
$ minikube.exe version
minikube version: v1.33.1
commit: 5883c09216182566a63dff4c326a6fc9ed2982ff