Install Minikube

1. Installing Docker

Step 1: Update Docker Package Database

In a terminal window, type:

sudo yum check-update

Allow the operation to complete.

Step 2: Install the Dependencies

The next step is to download the dependencies required for installing Docker.

Type in the following command:

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

The –y switch indicates to the yum installer to answer “yes” to any prompts that may come up. The yum-utils switch adds the yum-config-manager. Docker uses a device mapper storage driver, and the device-mapper-persistent-data and lvm2 packages are required for it to run correctly.

The command for installing Docker dependencies on CentOS 7.

Step 3: Add the Docker Repository to CentOS

To install the edge or test versions of Docker, you need to add the Docker CE stable repository to your system. To do so, run the command:

sudo yum-config-manager --add-repo

A command for adding the Docker CE stable repository to CentOS 7.

stable release is tested more thoroughly and has a slower update cycle. On the other hand, Edge release updates are more frequent but aren’t subject to as many stability tests.



Step 4: Install Docker On CentOS Using Yum


With everything set, you can finally move on to installing Docker on CentOS 7 by running:

sudo yum install docker

The system should begin the installation. Once it finishes, it will notify you the installation is complete and which version of Docker is now running on your system.


2. Installing Minikube


1. Download the Minikube binary package using the wget command:


2. Then, use the chmod command to give the file executive permission:

chmod +x minikube-linux-amd64

3. Finally, move the file to the /usr/local/bin directory:

sudo mv minikube-linux-amd64 /usr/local/bin/minikube

4. With that, you have finished setting up Minikube. Verify the installation by checking the version of the software:

minikube version
Step 4: Installing Kubectl

Apart from installing Minikube, you also need to set up kubectl, the command line tool for working with Kubernetes.

1. Run the following command to download kubectl:

curl -LO`curl -s`/bin/linux/amd64/kubectl

2. Give it executive permission:

chmod +x kubectl

3. Move it to the same directory where you previously stored Minikube:

sudo mv kubectl /usr/local/bin/

4. Verify the installation by running:

kubectl version --client -o json
Step 5: Starting Minikube

To start using Minikube and start a single node cluster inside a virtual machine, you just need to run the command:

minikube start

Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 77