Installing Minikube on Linux

Lesson Progress
0% Complete

Let’s learn how to install Minikube v1.0.1 on Ubuntu Linux 18.04 LTS with VirtualBox v6.0 specifically.

Install Minikube on Ubuntu

  1. Install the VirtualBox hypervisor
  2. Install Minikube
  3. Start Minikube
  4. Check the status
  5. Stop minikube

1 Install the VirtualBox hypervisor

First step is to add the source repository for the bionic distribution (Ubuntu 18.04), download and register the public key, update and install by adding the below commands in terminal.

sudo bash -c 'echo "deb https://download.virtualbox.org/virtualbox/debian bionic contrib" >> /etc/apt/sources.list'
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt-get update 
sudo apt-get install -y virtualbox-6.0

As we discuss the requirements to install minikube in our previous lesson this is an important step.

2 Install Minikube

We can download the latest release from the Minikube release page. At the time the course was written, the latest Minikube release was v1.0.1.

Once downloaded, we need to make it executable and add it to our PATH:

curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.0.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

Replacing /v1.0.1/ with /latest/ will always download the latest version.

3 Start Minikube

We can start Minikube with the minikube start command (disregard “Unable to read…/docker/config…” and “No matching credentials…” warnings):

minikube start

4 Check the status

With the minikube status command, we display the status of Minikube:

minikube status

5 Stop Minikube

With the minikube stop command, we can stop Minikube:

minikube stop

If you need help to install Minikube on Mac OS or Windows Operating System follow their respective tutorials.