How to install minikube and docker in Windows 10?

2019-08-07 06:58发布

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 .

I need both for work .

Please suggest a way to make this happen .

Appreciate your help . :)

2条回答
霸刀☆藐视天下
2楼-- · 2019-08-07 07:31

@bkr you don't have to turn off Hyper-V to use minikube.

Scenarios are like this:

1) Use Docker, and minikube with Hyper-V (you will find instruction in an answer above) Enable Hyper-V, install Docker, use minikube with arguments minikube start --vm-driver hyperv --hyperv-virtual-switch "<created Hyper-V switch name>" In the same time you will be able to interact with Docker in normal way. Use kubectl/minikube commands for your Kubernetes cluster and Docker commands for Docker.
2) Use VirtualBox for Kubernetes and Docker toolbox for Docker minikube start --vm-driver=virtualbox

3) Use Docker for Windows and Kubernetes in Docker

查看更多
仙女界的扛把子
3楼-- · 2019-08-07 07:34

You can achieve this by creating a new virtual switch in Hyper-V Manager for Minikube.

  1. Open the Hyper-V Manager (simple Windows search will find it)
  2. Select 'Virtual Switch Manager'
  3. Select 'New virtual network switch' and choose network type 'External'
  4. Create the virtual switch (take note of the name you save it with)
  5. Then when starting up minikube you can do the following: minikube start --vm-driver hyperv --hyperv-virtual-switch "<your switch name>"

Approach taken from the following Medium article: https://medium.com/@JockDaRock/minikube-on-windows-10-with-hyper-v-6ef0f4dc158c

查看更多
登录 后发表回答