Let us start creating some instances in the cloud. First, let us launch a machine in Digital Ocean.
There are two prerequisites for launching an instance with Docker Machine in Digital Ocean, the first is a Digital Ocean account and the second is an API token.
To sign up for a Digital Ocean account, please visit https://www.digitalocean.com/ and click Sign Up. Once you have or are logged in to your account, you can generate an API token by clicking on the API link in the top menu.
To grab your token, click on Generate New Token and follow the onscreen instructions.
Tip
You only get one chance to make a record of your token; please make sure you store it somewhere safe as it will allow anyone who has it to launch instances into your account.
Once you have the token, you can launch your instance using Docker Machine. To do this, run the following command, making sure to replace the example API token with your own:
docker-machine create \ --driver digitalocean \ ...