简体   繁体   中英

How to install minikube and docker in Windows 10?

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 . :)

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

@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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM