我试图在 Windows 10 企业版上使用 Minikube 扩展我的 Docker 容器。然而,我遇到了一些 Hyper-V 和 VirtualBox 的冲突。我知道 Docker 需要 Hyper-V 正确运行,而 Minikube 需要 VirtualBox 运行(如果启用 Hyper-V,则会显示错误)。
C:\WINDOWS\system32>minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
160.27 MB / 160.27 MB [============================================] 100.00%
0s
E0822 11:42:07.898412 13028 start.go:174] Error starting host: Error
creating host: Error executing step: Running precreate checks.
: This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when
Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V
hypervisor. (To skip this check, use --virtualbox-no-vtx-check).
如果我禁用Hyper-V,我可以成功启动minikube,但是Docker无法工作并显示启用Hyper-V的错误信息。
我还尝试使用Hyper-V驱动程序运行minikube,但仍然遇到此错误:
C:\WINDOWS\system32>minikube start --vm-driver hyperv
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
E0822 11:44:32.323877 13120 start.go:174] Error starting host: Error
creating host: Error executing step: Running precreate checks.
: no External vswitch found. A valid vswitch must be available for this
command to run. Check https://docs.docker.com/machine/drivers/hyper-v/.
这有什么解决办法吗?