Running Rancher on RancherOS

In this article, I will show how to run Rancher on RancherOS which we installed in previous tutorial. Requirements to run Rancher:

  • 4 GB of RAM
  • Installed RancherOS / another system with Docker installed

SSH into RancherOS or type in the terminal this command to start rancher:

sudo docker run -d --restart=always -p 80:80 -p 443:443 rancher/rancher
If you have port 80 or 443 used use another one. Also if you want to run Rancher worker on the same node, don’t use port 80 for the master node.

sudo docker run -d --restart=always -p 8080:80 -p 8443:443 rancher/rancher

It should now start after a few moments. Navigate to your browser and go to: http://your-vm-ip:8080 or http://your-vm-ip if you used port 80.

rancher ssl error

You probably will see this one, as rancher use self-signed SSL certificate, just press Advanced->Proceed to your-vm-ip

Enter the password for the admin user or select a random one:

rancher login page

Press “Continue” and you should now see Rancher Server Url, which will be used for all workers to communicate with the server, so it should be publically accessible.

rancher server url

Save URL and you should now see Rancher main dashboard

rancher clusters menu