Rancher supports provisioning DigitalOcean hosts using docker machine
.
In order to launch a DigitalOcean host, you’ll need a Personal Access Token provided by DigitalOcean. Log in to your DigitalOcean account.
Navigate to the Apps & API page.
In the Personal Access Tokens, click on the Generate New Token button. Name your token (e.g. Rancher) and click Generate Token.
Copy your Access Token from the UI and save it somewhere safe. This is the only time you will be able to see the access token. Next time you go to the page, the token will no longer be shown and you will not be able to retrieve it.
Now that we’ve saved the Access Token, we are ready to launch our DigitalOcean host. Under the Infrastructure -> Hosts tab, click Add Host. Select the DigitalOcean icon.
docker machine
supports for DigitalOcean is also supported by Rancher.docker-machine create
command with Docker engine options.Once you click on create, Rancher will create the DigitalOcean droplet and launch the rancher-agent container in the droplet. In a couple of minutes, the host will be active and available for services.