Installing Minikube on Ubuntu 22.04 LTS


Minikube is a tool that allows you to run Kubernetes clusters on your local machine. It is designed to make it easy for developers to test their applications on a Kubernetes cluster without the need for a full-fledged production environment.


  • Basic knowledge of Linux commands.
  • Up and running Ubuntu 22.04 Machine
  • Root permission
  • 2 CPUs or more
  • 2GB of free memory
  • 20GB of free disk space
  • Internet connection
  • Container or virtual machine manager, such as: Docker, QEMU, Hyperkit, Hyper-V, KVM, Parallels, Podman, VirtualBox, or VMware Fusion/Workstation

In this post, We will show you how to install Minikube on ubuntu 22.04 LTS Linux machine.

Step 1: Run System Updates

You need to first update and upgrade the current Ubuntu repository by following the command.

To update ubuntu repository.

sudo apt-get update

To upgrade packages.

sudo apt-get upgrade -y

Step 2: Installing Docker Community Version

It’s possible that the Docker installation package in the official Ubuntu repository is not the most recent version. We will install Docker from the official Docker repository in order to guarantee that we get the most recent version. We will first add a new source for the package, then install the package by adding the GPG key from Docker to make sure the downloads are legitimate.

To add docker repository and gpg Key

sudo apt install apt-transport-https ca-certificates curl software-properties-common

Type Y to continue installation of the packages.

curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update && sudo apt-cache policy docker-ce 

To install Docker Community Version.

sudo apt-get install docker-ce -y

To Validate Docker Service Status.

sudo systemctl status docker.service

Step 3: Installing Kubectl 

You need to install the kubectl command to control the minikube cluster on Ubuntu. Execute the given commands one by one.

To Add Key

sudo curl -s | sudo apt-key add -

To add repository of kubectl utility.

sudo echo "deb kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list

To update repository.

sudo apt-get update

To install kubectl utility.

 sudo apt-get install kubectl -y

Step 4: Installing Minikube

we need to download the.deb file from the given url, and after that, you can install it. Also, you can get another method to install Minikube.

To download latest minikube’s .eb file.

curl -LO

To install Minikube.

sudo dpkg -i minikube_latest_amd64.deb

Step 5: Driver Configuration with Docker

We need to configure drivers with Minikube using Docker. Use the below command for the same.

To add user in docker group.

sudo usermod -aG docker $USER && newgrp docker

To start docker as a driver for minikube.

minikube start --driver=docker

To update configuration with minikube.

minikube config set driver docker

Step 6: Starting Minikube

Now we are good to start and use the minikube service on our ubuntu instance, Use the following command for the same.

minikube start

Lets try to get name space using kubectl command.

kubectl get ns


We have successfully installed Minikube with docker driver on ubuntu 22.04 LTS machine, If you still have questions, please post them in the comments section below.


Installing Minikube on Ubuntu 22.04 LTS

5 thoughts on “Installing Minikube on Ubuntu 22.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top