Install Rancher on DigitalOcean

July 29, 2019

2 min read


  1. Start by creating a brand new droplet on DigitalOcean. Create a droplet with 4GB of RAM. Make sure you select Ubuntu 18.04 (LTS).
  2. SSH into the droplet to install Docker
  3. Install packages needed for installing and apt repo over HTTPS
apt-get update
apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
  1. Add the official Docker GPG key
curl -fsSL | sudo apt-key add -
  1. Add the official docker repo
sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable";
  1. Get a list of the available docker version
apt-cache madison docker-ce
  1. Install the latest docker 18.09 version
apt-get install docker-ce=5:18.09.8~3-0~ubuntu-bionic
  1. Point your DNS records for rancher.\$ to your rancher droplets IP

    • Its a good idea to use a floating IP for your rancher droplet
  2. Install and start rancher

docker run -d --restart=unless-stopped \
              -p 80:80 -p 443:443 rancher/rancher:stable \
              --acme-domain rancher.$
  1. Go to rancher.$ and set up a new password



Get More!