Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


ElasticSearch Dockerfile

This repository contains the Dockerfile ElasticSearch Docker's automated build published to the public Docker Hub Registry and

Base Docker Image


docker run -d -p 9200:9200 -p 9300:9300 predicsis/elasticsearch

Attach persistent/shared directories

  1. Create a mountable data directory <data-dir> on the host.

  2. Create ElasticSearch config file at <data-dir>/elasticsearch.yml.

     data: /data/data
     logs: /data/log
     plugins: /data/plugins
     work: /data/work
  3. Start a container by mounting data directory and specifying the custom configuration file:

    docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -v <data-dir>:/data predicsis/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml

After few seconds, open http://<host>:9200 to see the result.


If you want to limit Elasticsearch's HEAP_SIZE, you can use the ES_HEAP_SIZE environment variable:

docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -v <data-dir>:/data -e "ES_HEAP_SIZE=1024m" /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
Docker Pull Command
Source Repository