无法在我的 minikube 中加载缓存图像,我有 windows 10 企业版
Unable to load cached Images in my minikube, I have windows 10 enterprise edition
我尝试重新安装,但似乎没有任何效果。
控制台输出:
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.
此问题已在 this SO question 中提出。我正在发布社区维基答案:
您没有提供您尝试安装 minikube 的方式以及您的 PC 上还安装了什么。所以很难提供 100% 准确的答案。我将尝试提供一种我用来在 Windows 上安装 minikube 的方法,如果这没有帮助,请提供更多信息,说明您执行了哪些步骤导致了此错误。我不想猜测,但似乎您没有添加 minikube
二进制到你的路径:
executable file not found in %PATH%
- Preparing Kubernetes environment ...
首先让我们删除您当前安装的所有痕迹。
运行 minikube delete
转到 C:\Users\current-user\ 并删除 .kube
和 .minikube
文件夹。
打开 Powershell 并按照说明安装 chocolatey here:
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). You can use VirtualBox as well but then you won't be able to use Docker for Windows (assuming you want to) - you can read more in one of my answers . Another possibility is to use Kubernetes in Docker for Windows as explained here 中的步骤进行操作 - 但在这种情况下您不会使用 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.
此问题已在 this SO question 中提出。我正在发布社区维基答案:
您没有提供您尝试安装 minikube 的方式以及您的 PC 上还安装了什么。所以很难提供 100% 准确的答案。我将尝试提供一种我用来在 Windows 上安装 minikube 的方法,如果这没有帮助,请提供更多信息,说明您执行了哪些步骤导致了此错误。我不想猜测,但似乎您没有添加 minikube 二进制到你的路径:
executable file not found in %PATH%
- Preparing Kubernetes environment ...
首先让我们删除您当前安装的所有痕迹。
运行 minikube delete
转到 C:\Users\current-user\ 并删除 .kube
和 .minikube
文件夹。
打开 Powershell 并按照说明安装 chocolatey here:
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). You can use VirtualBox as well but then you won't be able to use Docker for Windows (assuming you want to) - you can read more in one of my answers
如果有帮助,请告诉我。