如何在Windows 10中安装minikube和docker? [英] How to install minikube and docker in Windows 10?
问题描述
我想研究minikube.我已经成功安装了它,但是我了解到在Windows 10中,我需要禁用Hyper-v. 现在,当我尝试安装docker时,需要启用Hyper-v.
I want to work on minikube . I installed it successfully but I learned that in Windows 10 , I need to disable Hyper-v . Now , when I try to install docker , it needs Hyper-v enabled .
我两个都需要工作.
请提出实现此目标的方法.
Please suggest a way to make this happen .
感谢您的帮助. :)
推荐答案
您可以通过在用于Minikube的Hyper-V Manager中创建新的虚拟交换机来实现.
You can achieve this by creating a new virtual switch in Hyper-V Manager for Minikube.
- 打开Hyper-V管理器(通过简单的Windows搜索即可找到它)
- 选择虚拟交换机管理器"
- 选择新虚拟网络交换机",然后选择网络类型外部"
- 创建虚拟交换机(记下其保存名称)
- 然后,当启动minikube时,您可以执行以下操作:
minikube start --vm-driver hyperv --hyperv-virtual-switch "<your switch name>"
- Open the Hyper-V Manager (simple Windows search will find it)
- Select 'Virtual Switch Manager'
- Select 'New virtual network switch' and choose network type 'External'
- Create the virtual switch (take note of the name you save it with)
- Then when starting up minikube you can do the following:
minikube start --vm-driver hyperv --hyperv-virtual-switch "<your switch name>"
方法选自以下中型文章: https://medium.com/@JockDaRock/minikube-on-windows-10-with-hyper-v-6ef0f4dc158c
Approach taken from the following Medium article: https://medium.com/@JockDaRock/minikube-on-windows-10-with-hyper-v-6ef0f4dc158c
这篇关于如何在Windows 10中安装minikube和docker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!