如何在jelastic中设置docker run选项,特别是max file descriptors(ulimit)

问题描述 投票:3回答:1

我正在尝试使用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的可能性但没有一个正在工作。

设置它的最佳方法是什么?

docker jelastic
1个回答
2
投票

我终于找到了一种方法,通过编辑文件/usr/local/bin/docker-entrypoint.sh并在开头附近添加以下内容:

ulimit -n 65536

这是最好的方法吗?

© www.soinside.com 2019 - 2024. All rights reserved.