copy-pastable example that uses docker-machine to provision a docker host and run an elasticsearch cluster with a simple test app that prints the number of cluster nodes. Assumes a correct ~/.aws/credentials
file and a security group with open inbound ports 22, 2375 and (optionally) 9300 defined for the VPC you're deploying to.
docker-machine create -d amazonec2 --amazonec2-instance-type t2.medium --amazonec2-vpc-id vpc-**** --amazonec2-security-group estesting estest01
eval $(docker-machine env estest01)
docker network create estesting
# dedicated master
docker run -d --name es01 --network estesting elasticsearch -Dnode.data=false