Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why minikube needs a VM

I guess that minikube needs VirtualBox because of dockers' dependencies, but my current docker version doesn't need it.

So do I still need VirtualBox or another VM to start minikube?

like image 211
learnercys Avatar asked Aug 18 '17 09:08

learnercys


People also ask

Does minikube require a VM?

Minikube runs on Linux, MacOS, and Windows operating systems, selecting a virtualization manager appropriate for each operating system. You may be required to install a virtualization manager, if you do not have one already installed.

Does minikube create VM?

Minikube is a lightweight Kubernetes implementation that creates a VM on your local machine and deploys a simple cluster containing only one node. Minikube is available for Linux, macOS, and Windows systems.

Does minikube require Hyper V?

Minikube depends on a container or a virtual machine manager to deploy a Kubernetes cluster. Some of the virtual machine managers it supports are Docker, Hyper kit, Hyper-V, KVM, Parallels, Podman, VirtualBox, and VMWare. Since we are using a Windows environment, we can simply use the inbuilt Hyper-V virtualization.

Can you run minikube in a container?

You can run minikube in docker in docker container. It will use docker driver.


1 Answers

You can work on Minikube even without installing VirtualBox.

Minikube also supports a --driver=none option that runs the Kubernetes components on the host and not in a VM. Using this driver requires Docker and a Linux environment but not a hypervisor.

If you’re using the none driver in Debian or a derivative, use the .deb packages for Docker rather than the snap package, which does not work with Minikube. You can download .deb packages from Docker.

You can also use --driver=docker

For more information, you can refer here

like image 200
shubham singh Avatar answered Sep 18 '22 09:09

shubham singh