I am trying to create a docker file. Can anyone please tell me that how to add the ulimit parameter in docker file. I tried like this:
RUN --ulimit nofile=262144:262144
But it is showing error. Can anyone please tell me how to correctly set this parameter in Dockerfile.
You can't set ulimits on docker containers in the dockerfile - needs to be set when running the container from the command line. Try this:
docker run --ulimit nofile=262144:262144 IMAGE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With