无法在我的迷你库中加载缓存的图像,我有 Windows 10 企业版



尝试重新安装它,但似乎没有任何效果。

控制台输出:

E1126 15:42:35.408904   19976 cache_images.go:80] CacheImage k8s.gcr.io/kube-scheduler:v1.16.2 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-scheduler_v1.16.2 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%

E1126 15:42:35.436232   19976 cache_images.go:80] CacheImage gcr.io/k8s-minikube/storage-provisioner:v1.8.1 -> C:UsersSanket1.Gupta.minikubecacheimagesgcr.iok8s-minikubestorage-provisioner_v1.8.1 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.439164   19976 cache_images.go:80] CacheImage k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.13 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iok8s-dns-dnsmasq-nanny-amd64_1.14.13 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.467462   19976 cache_images.go:80] CacheImage k8s.gcr.io/kube-proxy:v1.16.2 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-proxy_v1.16.2 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.483078   19976 cache_images.go:80] CacheImage k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.13 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iok8s-dns-sidecar-amd64_1.14.13 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.485031   19976 cache_images.go:80] CacheImage k8s.gcr.io/kube-addon-manager:v9.0 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-addon-manager_v9.0 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.492838   19976 cache_images.go:80] CacheImage k8s.gcr.io/coredns:1.6.2 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iocoredns_1.6.2 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.514311   19976 cache_images.go:80] CacheImage k8s.gcr.io/kube-controller-manager:v1.16.2 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-controller-manager_v1.16.2 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.516262   19976 cache_images.go:80] CacheImage k8s.gcr.io/pause:3.1 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iopause_3.1 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.536759   19976 cache_images.go:80] CacheImage k8s.gcr.io/kubernetes-dashboard-amd64:v1.10.1 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokubernetes-dashboard-amd64_v1.10.1 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.544566   19976 cache_images.go:80] CacheImage k8s.gcr.io/etcd:3.3.15-0 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.ioetcd_3.3.15-0 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.544566   19976 cache_images.go:80] CacheImage k8s.gcr.io/kube-apiserver:v1.16.2 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-apiserver_v1.16.2 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
E1126 15:42:35.546525   19976 cache_images.go:80] CacheImage k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.13 -> C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iok8s-dns-kube-dns-amd64_1.14.13 failed: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name:  exec: "wmic": executable file not found in %PATH%
* Starting existing virtualbox VM for "minikube" ...
* Waiting for the host to be provisioned ...
* Found network options:
- NO_PROXY=192.168.99.103
- no_proxy=192.168.99.103 ! VM is unable to access k8s.gcr.io, you may need to configure a proxy or set --image-repository
* Preparing Kubernetes v1.16.2 on Docker '18.09.9' ...
- env NO_PROXY=192.168.99.103
- env NO_PROXY=192.168.99.103
E1126 15:44:39.347174   19976 start.go:799] Error caching images:  Caching images for kubeadm: caching images: caching image C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-scheduler_v1.16.2: getting destination path: parsing docker archive dst ref: replace a Win drive letter to a volume name: exec: "wmic": executable file not found in %PATH%
* Unable to load cached images: loading cached images: loading image 
C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-controller-manager_v1.16.2: CreateFile 
C:UsersSanket1.Gupta.minikubecacheimagesk8s.gcr.iokube-controller-manager_v1.16.2: The system cannot find the path specified.

这个问题在这个SO问题中被提出。我正在发布一个社区维基答案:


没有提供您尝试安装minikube的方式以及PC上安装的其他内容。因此,很难提供100%准确的答案。我将尝试提供一种用于在 Windows 上安装 minikube 的方法,如果这没有帮助,请提供有关您执行了哪些步骤导致此错误的更多信息。我不想猜测,但似乎您没有添加迷你库贝 二进制到您的路径:

executable file not found in %PATH% - Preparing Kubernetes environment ...

首先,让我们删除当前安装的所有痕迹。 运行minikube delete转到 C:\Users\current-user\ 并删除.kube.minikube文件夹。

打开Powershell并安装巧克力,如下所述:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

安装后运行choco install minikube kubernetes-cli.

现在,根据要使用的虚拟机监控程序,您可以按照本教程 (Hyper-V( 中的步骤操作。你也可以使用VirtualBox,但你将无法使用Docker for Windows(假设你想这样做( - 你可以在我的回答中阅读更多。另一种可能性是在 Docker for Windows 中使用 Kubernetes,如此处所述 - 但在这种情况下您不会使用 minikube。


如果有帮助,请告诉我。

相关内容

  • 没有找到相关文章

最新更新