Hyper-v and VirtualBox conflict in Dockers with Minikube
I also tried running minikube with Hyper-V driver, but also get this error:
There is an explicit warning about that HyperV and vswitch situation in their docs: https://github.com/kubernetes/minikube/blob/v0.28.2/docs/drivers.md#hyperv-driver
Although in minikube
's defense, it also does say right at the end the URL one should go to in order to read about the --hyperv-virtual-switch
flag one should provide in addition to --vm-driver=hyperv
.
Navigating to that linked docker page, it even provides a step-by-step with screenshots example of how to accomplish that.
Next steps solved my problem:
> minikube start --vm-driver=hyperv -v 9999
If there is another error such
Error: [HYPERV_NO_VSWITCH] create: precreate: no External vswitch found. A valid vswitch must be available for this command to run
Just create a switch manually.