我正在尝试使用official documentation在jelastic上安装elasticsearch
最终启动容器时出错:
ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
我尝试了一些设置ulimit的可能性但没有一个正在工作。
设置它的最佳方法是什么?
我终于找到了一种方法,通过编辑文件/usr/local/bin/docker-entrypoint.sh
并在开头附近添加以下内容:
ulimit -n 65536
这是最好的方法吗?