Install Minikube on Fedora using RPM (Docker Driver)
This guide walks through installing Minikube on Fedora using the official RPM package, with Docker as the runtime, and installing kubectl from the official Kubernetes release.
1. Install Docker Engine (Prerequisite)
Minikube uses Docker to run your local Kubernetes cluster.
Remove old Docker packages
sudo dnf remove -y docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
Add the official Docker repository
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo
Install Docker
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Start Docker
sudo systemctl enable --now docker
(Optional but Recommended) Run Docker without sudo
sudo usermod -aG docker $USER
newgrp docker
Verify Docker
docker run hello-world
2. Install Minikube (Official RPM)
Download the latest stable Minikube RPM
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
Install it
sudo rpm -Uvh minikube-latest.x86_64.rpm
Cleanup
rm minikube-latest.x86_64.rpm
Verify Minikube installation
minikube version
3. Install kubectl (Official Kubernetes Binary)
Download the latest stable release
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
Make it executable
chmod +x kubectl
Move it into your PATH
sudo mv kubectl /usr/local/bin/kubectl
Verify kubectl installation
kubectl version --client
4. Optional kubectl Configuration (System-wide Autocompletion)
Enable kubectl bash autocompletion system-wide
kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null
sudo chmod a+r /etc/bash_completion.d/kubectl
Enable completion for a shorter alias
echo 'alias k=kubectl' >> ~/.bashrc
echo 'complete -o default -F __start_kubectl k' >> ~/.bashrc
Reload your shell
source ~/.bashrc
5. Start Your Minikube Cluster
Create your local Kubernetes cluster using Docker:
minikube start --driver=docker
This may take a few minutes the first time as Kubernetes images are downloaded.
6. Open the Kubernetes Dashboard
minikube dashboard
This launches the built-in Kubernetes web UI in your browser.
7. Verify the Cluster
Check the node status
kubectl get nodes
Expected output:
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane Xm vX.Y.Z
Check running containers
docker ps
8. Useful Minikube Commands
Stop the cluster
minikube stop
Delete the cluster
minikube delete
List available addons
minikube addons list
9. References
- Minikube RPM install: https://minikube.sigs.k8s.io/docs/start/?arch=%2Flinux%2Fx86-64%2Fstable%2Frpm+package
- Docker Engine install on Fedora: https://docs.docker.com/engine/install/fedora/
- kubectl install on Linux: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
Top comments (1)
Really helpful