Minikube allows you to run a local Kubernetes cluster for learning, development, and testing. It supports Docker, containerd, VirtualBox, and other drivers β but Docker is the simplest and most stable.
This guide gives the exact working steps without errors.
β 1οΈβ£ Install Required System Dependencies
These packages ensure your system can fetch and install Minikube components.
sudo apt update
sudo apt install -y curl wget apt-transport-httpsβ 2οΈβ£ Install Docker Driver
Minikube requires a βdriverβ to run Kubernetes containers.
β Recommended Driver: Docker
sudo apt install -y docker.io
sudo usermod -aG docker $USER
newgrp dockerVerify Docker:
docker --versionβ 3οΈβ£ Install kubectl (Kubernetes CLI)
Although Minikube includes kubectl internally, installing it globally is better.
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/Verify:
kubectl version --clientβ 4οΈβ£ Download & Install Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
Check installation:
minikube versionβ 5οΈβ£ Start Minikube Cluster
Using Docker driver (best & easiest):
minikube start --driver=dockerThis will:
β Download Kubernetes
β Start kubelet
β Configure networking
β Bring up control-plane components
β 6οΈβ£ Verify Your Kubernetes Cluster
Check node status:
kubectl get nodesList all pods:
kubectl get pods -AYou should see something like:
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane 1m v1.xx.xβ 7οΈβ£ Enable Useful Minikube Addons
Minikube includes many pre-built addons.
Example: Enable Dashboard
minikube addons enable dashboardEnable Ingress:
minikube addons enable ingressEnable Metrics Server:
minikube addons enable metrics-serverOpen Dashboard:
minikube dashboardβ 8οΈβ£ Useful Minikube Commands (Cheat Sheet)
| Command | Description |
|---|---|
minikube stop | Stop cluster |
minikube delete | Delete everything |
minikube status | View cluster state |
minikube ip | Get cluster IP |
minikube ssh | SSH into minikube node |
π You Have Successfully Installed Minikube!
You now have a fully working local Kubernetes environment.