docker启动elasticsearch的容器时 出现了这个错误
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsearch/elasticsearch.log
解决办法:
在/etc/sysctl.conf文件末尾添加配置vm.max_map_count=262144
然后执行
sysctl -p