I am new to Opendistro for Elasticsearch and tried to do the first steps as described in Get Up and Running with Open Distro for Elasticsearch | AWS Open Source Blog
When I used the default docker-compose file there were several errors. So I decided to remove the 2nd Elasticsearch and the Kibana node. This is my docker-compse file.
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- “ES_JAVA_OPTS=-Xms512m -Xmx512m” # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- 9600:9600 # required for Performance Analyzer
When I start the container with ‘sudo docker-compose up’ (I need to use sudo because the docker-daemon is started as user root) Elasticsearch does not start beacuse of the following error:
odfe-node1 | [2019-03-27T08:56:53,596][INFO ][o.e.b.BootstrapChecks ] [TASvLBx] bound or publishing to a non-loopback address, enforcing bootstrap checks
odfe-node1 | ERROR:  bootstrap checks failed
odfe-node1 | : max virtual memory areas vm.max_map_count  is too low, increase to at least 
How can I increase the virtual memory for Elasticseach in the docker container?
Thanx for help in advance!