Elasticsearch in a container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

710 B


The latest Elasticsearch for docker, currently 6.3.2.


  • Build: docker build -t elasticsearch .
  • Run: docker run -d -v /data/elastic:/var/lib/elasticsearch -p 9300:9300 -p 9200:9200 elasticsearch

Note: you'll need to increase vm.max_map_count; Elasticsearch will demand it. Either add --sysctl vm.max_map_count=262144 to the docker run command or use sysctl -w vm.max_map_count=262144.


  • Override default config file: -v /data/myconfig.yml:/etc/elasticsearch/elasticsearch.yml
  • Data is stored in /var/lib/elasticsearch
  • Set memory limit like so: `-e "ES_JAVA_OPTS=-Xms8G -Xmx8G"