Provision hosts in the cloud (Machine)

Use Docker Machine to provision hosts on cloud providers

Docker Machine driver plugins are available for many cloud platforms, so you can use Machine to provision cloud hosts. When you use Docker Machine for provisioning, you create cloud hosts with Docker Engine installed on them.

You’ll need to install and run Docker Machine, and create an account with the cloud provider.

Then you provide account verification, security credentials, and configuration options for the providers as flags to docker-machine create. The flags are unique for each cloud-specific driver. For instance, to pass a Digital Ocean access token you use the --digitalocean-access-token flag. Take a look at the examples below for Digital Ocean and AWS.

Examples

Digital Ocean

For Digital Ocean, this command creates a Droplet (cloud host) called “docker