sunfmin / notebook

My Note Book
2 stars 0 forks source link

Elasticsearch 5.0 in Docker: bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks ERROR: bootstrap checks failed #10

Open sunfmin opened 8 years ago

sunfmin commented 8 years ago

https://hub.docker.com/_/elasticsearch/

To fix the vm.max_map_count on windows docker with multiple virtual machines, simply run the following commands:

docker-machine ssh [machine]
sudo -i
sysctl -w vm.max_map_count=262144

Should be persistent during reboots.

Then start an elasticsearch:5.0.0 container on that virtual machine. Do not forget to apply more memory than standard in your docker run argument. Syntax that work for me: -e ES_JAVA_OPTS="-Xms15g -Xmx15g"