How to install minikube and docker in Windows 10?

前端 未结 2 1093
迷失自我
迷失自我 2021-01-22 06:52

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 en

相关标签:
2条回答
  • 2021-01-22 07:08

    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

    0 讨论(0)
  • 2021-01-22 07:19

    @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

    0 讨论(0)
提交回复
热议问题