gpt4 book ai didi

docker - 使用Minikube的Docker中的Hyper-v和VirtualBox冲突

转载 作者:行者123 更新时间:2023-12-04 15:17:37 24 4
gpt4 key购买 nike

我正在尝试在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/.

有什么解决办法吗?

最佳答案

I also tried running minikube with Hyper-V driver, but also get this error:



在他们的文档中有关于HyperV和vswitch情况的明确警告: https://github.com/kubernetes/minikube/blob/v0.28.2/docs/drivers.md#hyperv-driver

尽管在 minikube的辩护中,它的确也说了 ,位于的末尾,该URL应该是为了阅读有关 --hyperv-virtual-switch并应提供的 --vm-driver=hyperv标志。

导航到该链接的 docker 页面,它甚至提供了有关如何完成此操作的分屏截图示例。

关于docker - 使用Minikube的Docker中的Hyper-v和VirtualBox冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51973328/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com