This example deploys a droplet with a public IP address.
None.
os_image
- An identifier representing the OS image from which the droplet will be createdregion
- An identifier representing the region (datacenter) where the droplet will be deployedsize
- An identifier representing the size for the new droplet
First, update additional-variables.json with appropriate values.
export DIGITALOCEAN_TOKEN=my_token
cd examples/digital_ocean
docker-machine create --driver terraform \
--terraform-config $PWD/main.tf \
--terraform-variables-from $PWD/additional-variables.json \
hello-digital-ocean
This configuration produces:
digitalocean_droplet.docker_machine
- The Docker host