RancherOS is avaliable in the Digital Ocean portal. RancherOS is a member of container distributions and you can find it easily.

Note Deploying to Digital Ocean will incur charges.

To start a RancherOS Droplet on Digital Ocean:

  1. In the Digital Ocean portal, go to the project view.
  2. Click New Droplet.
  3. Click Create Droplet.
  4. Click the Container distributions tab.
  5. Click RancherOS.
  6. Choose a plan. Make sure your Droplet has the minimum hardware requirements for RancherOS.
  7. Choose any options for backups, block storage, and datacenter region.
  8. Optional: In the Select additional options section, you can check the User data box and enter a cloud-config file in the text box that appears. The cloud-config file is used to provide a script to be run on the first boot. An example is below.
  9. Choose an SSH key that you have access to, or generate a new SSH key.
  10. Choose your project.
  11. Click Create.

You can access the host via SSH after the Droplet is booted. The default user is rancher.

Below is an example cloud-config file that you can use to initialize the Droplet with user data, such as deploying Rancher:

#cloud-config

write_files:
  - path: /etc/rc.local
    permissions: "0755"
    owner: root
    content: |
      #!/bin/bash
      wait-for-docker

      export curlimage=appropriate/curl
      export jqimage=stedolan/jq
      export rancher_version=v2.2.2

      for image in $curlimage $jqimage "rancher/rancher:${rancher_version}"; do
        until docker inspect $image > /dev/null 2>&1; do
          docker pull $image
          sleep 2
        done
      done

      docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /opt/rancher:/var/lib/rancher rancher/rancher:${rancher_version}