This repository contains Dockerfile of Elasticsearch.
docker build --tag anktksh/elasticsearch .
docker run -p 9200:9200 -ti -v <data-dir>:/usr/share/elasticsearch/data --oom-kill-disable -m 4g anktksh/elasticsearch
After few seconds, open http://<host>:9200
to see the result.