Skip to content

Too many open files - 1024 and 4096 soft and hard open file limit #284

@zmarty

Description

@zmarty

Sorry for being terse, I am writing this on my phone because I am in a locked down corporate environment.

I created a Python microsandbox image with more data analysis packages such as scikit using a custom Dockerfile. I noticed that inside the container I cannot properly load complex Python packages because I immediately get Too many open file errors as soon as Python tries to import these packages. I have verified that the container has 1024 and 4096 soft and hard limits respectively, which is very low. It should be closer to 65K.

I tried setting higher limits in /etc/security/limits.conf but I am having trouble having the file have higher limits, something overwrites the file. And I am not sure limits.conf is even used in microsandbox / libkrun containers.

I hope this is something easy but I failed to fix it. I need a working image with the most common common Python data analysis packages that has higher limits. Please help, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions