idFlood
idFlood

Reputation: 1134

How to set docker run option in jelastic, especialy the max file descriptors (ulimit)

I'm trying to install elasticsearch on jelastic using the official documentation

Eventually there is an error when starting the container:

ERROR: [1] bootstrap checks failed 
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

I tried a number of possibilities to set the ulimit but none are working.

What's the best way to set this?

Upvotes: 3

Views: 324

Answers (1)

idFlood
idFlood

Reputation: 1134

I've finally found a way by editing the file /usr/local/bin/docker-entrypoint.sh and adding near the start the following:

ulimit -n 65536

Is this the best approach?

Upvotes: 2

Related Questions