【发布时间】:2019-01-29 02:19:41
【问题描述】:
我正在尝试在 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,但 Dockers 无法工作并显示启用 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/.
有什么解决办法吗?
【问题讨论】:
标签: docker kubernetes virtualbox hyper-v minikube