Header Ads

How to Install Rancher on Ubuntu 20.04

How to Install Rancher on Ubuntu 20.04

Rancher is an open-source platform that helps to manage and deploy containers. It provides an intuitive interface for users to manage their Docker containers, Kubernetes clusters, and other container orchestration tools. In this tutorial, we will guide you through the process of installing Rancher on Ubuntu 20.04.


Before we begin, ensure that you have the following:

  1. A Ubuntu 20.04 server
  2. A sudo user
  3. Docker installed on the server

Table of Contents

  1. Installing Docker on Ubuntu 20.04
  2. Installing Rancher using Docker
  3. Accessing the Rancher Dashboard


Before we proceed with the installation, we need to update the Ubuntu package list and install the necessary dependencies using the following command:

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

Installing Docker on Ubuntu 20.04:

To install Docker on Ubuntu 20.04, follow these steps:

Step 1: Add the Docker repository key to your system using the following command:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Step 2: Add the Docker repository to the Ubuntu system:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Step 3: Update the Ubuntu package list and install Docker:

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Installing Rancher using Docker:

To install Rancher using Docker, follow these steps:

Step 1: Pull the Rancher server image:

sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest

Step 2: Verify that the Rancher server container is running:

sudo docker ps


<container_id> rancher/rancher "entrypoint.sh ..." 30 seconds ago Up 28 seconds>80/tcp,>443/tcp relaxed_pasteur

Accessing the Rancher Dashboard:

To access the Rancher dashboard, open a web browser and enter the IP address or hostname of your Ubuntu server, followed by port 443. For example, if your server's IP address is, enter in your web browser.

You will be prompted to create an admin password for Rancher. After creating a password, you can log in to the Rancher dashboard and start deploying and managing containers.

In this tutorial, we have shown you how to install Rancher on Ubuntu 20.04. With Rancher, you can easily manage and deploy containers on your Ubuntu server.

Related Searches and Questions asked:

  • How to Install Minikube on CentOS
  • How to Install Rancher on Ubuntu
  • How to Containerize Legacy Applications
  • How to Deploy RabbitMQ on Kubernetes
  • That's it for this post. Keep practicing and have fun. Leave your comments if any.

    Powered by Blogger.