我的Windows 10企业版无法在minikube中加载缓存的图像

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

控制台输出:

E1126 15:42:35.408904   19976 cache_images.go:80] CacheImage k8s.gcr.io/kube-scheduler:v1.16.2 -> C:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-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:\Users\Sanket1.Gupta\.minikube\cache\images\gcr.io\k8s-minikube\storage-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\k8s-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\k8s-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\coredns_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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\pause_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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kubernetes-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\etcd_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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\k8s-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-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:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-controller-manager_v1.16.2: CreateFile 

C:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-controller-manager_v1.16.2: The system cannot find the path specified.

keywordtest 回答:我的Windows 10企业版无法在minikube中加载缓存的图像

此问题在this SO question中提出。我从中发布了社区Wiki答案:


您没有提供尝试安装minikube的方式以及PC上安装的其他产品的信息。因此很难提供100%准确的答案。我将尝试提供一种用于在Windows上安装minikube的方法,如果这样做没有帮助,请提供更多有关导致错误的步骤的详细信息。我不想猜测,但似乎您没有添加minikube 二进制文件添加到您的PATH:

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

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

打开Powershell并按照here的说明安装Chocolatey:

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

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

现在,根据要使用的虚拟机管理程序,可以执行此tutorial(Hyper-V)中的步骤。您也可以使用VirtualBox,但是您将无法使用Docker for Windows(假设您愿意)-您可以在我的答案here中阅读更多内容。如here所述,另一种可能性是在Docker for Windows中使用Kubernetes-但是在这种情况下您将不会使用minikube。


请让我知道是否有帮助。

本文链接:https://www.f2er.com/3030021.html

大家都在问