Category: Docker

In a certain scenarios, you are required to change the default ulimit. For example, an application fails to start with the below error. In Unix systems, you can increase the limit by the following command: To achieve the same in Docker, there are two options. Since setting ulimit settings in a container requires extra privileges not available in the default container, you can set these using the --ulimit flag. ulimit is specified with a soft and hard limit as such: =[:], for example: Note: If you do not provide a hard limit, the soft limit is used for both values.

Related Articles