This is based on the main ElasticSearch Dockerfile for ElasticSearch 1.7 and adds:
To use:
docker build -t code4sa/elasticsearch https://github.com/Code4SA/docker-elasticsearch.git
sudo mkdir -p /var/elasticsearch/data
docker run -d --restart=always -p 9200:9200 -p 9300:9300 -v /var/elasticsearch/data:/usr/share/elasticsearch/data code4sa/elasticsearch