I'm trying to use minikube but I don't want to install docker desktop so I installed docker engine but is there any way to use minikube start --driver=docker
with docker engine on ubuntu?
Thanks!
I'm trying to use minikube but I don't want to install docker desktop so I installed docker engine but is there any way to use minikube start --driver=docker
with docker engine on ubuntu?
Thanks!
Minikube is the officially supported way to run Kubernetes locally on macOS, Windows, or Linux. Furthermore, it is the only tool that is a drop-in replacement for Docker Desktop if you're running Kubernetes and Docker. It runs on macOS through the Hypervisor.framework, Windows through Hyper-V, and Linux either natively (without a virtual machine), docker, or KVM. You can also use virtualbox to run the machine.
The docker engine which is the core software behind the docker only runs on Linux kernel(the engine can run on a physical or a virtual machine, but it can only run on top of a Linux kernel i.e. any OS that is flavor of Linux). Since Docker Engine only runs on Linux, developers who use Windows and macOS for software development cannot run the engine until they spin up a virtual machine (VM) that runs linux.
Docker Desktop is not the core technology that runs containers, it only aims to make it easier to develop software on Windows/macOS that runs in containers. So we can replace Docker Desktop with using native Linux VM(and Hypervisor).
This only works with the docker container runtime, not with containerd or crio. You need to start minikube with a VM driver instead of docker, such as hyperkit on macOS and hyperv on Windows. Alternatively, you can use the minikube image build command instead of minikube docker-env and docker build.
Steps to use minikube as Docker Desktop Replacement:
Install the Docker CLI
Start minikube by using the following command:
$ minikube start --kubernetes-version= < version > --driver=< driver-name> --container-runtime=docker
(Note: If you are using MacOS the –driver will be hyperkit, if it is Windows then the driver will be hyperv)
Now Point Docker CLI to minikube.
Refer to Using minikube as Docker Desktop Replacement and Goodbye Docker Desktop, Hello Minikube! for more information. Also refer An Overview of Docker Desktop Alternatives.