Setup Rancher as a Docker Container

Configure and Manage Kubernetes Clusters with Rancher

What is Rancher?

Step 1: Setup a Virtual Machine to host the Rancher Server

Step 2: Install Docker on the VM

$ sudo apt-get update

$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
$ echo \
“deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
$ sudo docker run hello-world

Step 3: Rancher Docker Container Installation on the Single Node

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

Works at Praekelt.com. Topics: Devops, Cloud Engineering, Kubernetes and Python. Hobby is surfing (with his kids whenever he can).