Here are the steps in installing and setting up Rancher
1) Update and upgrade Ubuntu
sudo apt update && sudo apt upgrade

2) Install OpenSSH Server
sudo apt-get install -y openssh-server

3) Install cURL
sudo apt install curl

4) Check cURL version
curl –version

5) Install Rancher compatible Docker
curl https://releases.rancher.com/install-docker/20.10.sh | sh

6) Add user to Docker user group
sudo usermod -aG docker $USER && newgrp docker

7) Pull Rancher Docker Container
https://rancher.com/quick-start
sudo docker run –privileged -d –restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher

8) Launch web browser and open Rancher webpage
http://192.168.138.146

9) Get Container ID
docker ps
OR
docker container ls

10) Get the bootstrap password.
docker logs container-id 2>&1 | grep “Bootstrap Password:”
… with edited container ID…
docker logs 4203e8664138 2>&1 | grep “Bootstrap Password:”

11) Copy boot strap password and paste it in the Rancher webpage.

12) Setup your own customized password.

https://youtu.be/uBgMbO0c9a4

Reference