dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

[cupsd] Fails to start in kubernetes due to ulimit

Open martin31821 opened this issue 1 year ago • 1 comments

Hi,

I'm trying to run your cupsd image in kubernetes and I've discovered that cups crashes when it encounters a too high LIMIT_NOFILE. I'd like to propose to add a small entrypoint script that sets LIMIT_NOFILE for the container to an env variable.

Would you be open to that?

martin31821 avatar Aug 26 '24 14:08 martin31821

That's not how Docker and kernel namespaces work. If you want to tweak the ulimit value for your container, you can do it through the appropriate Docker option (--ulimit iirc).

olbat avatar Oct 30 '24 21:10 olbat

You can possibly check this issue: https://github.com/olbat/dockerfiles/issues/105#issuecomment-2067778834

olbat avatar Oct 30 '24 21:10 olbat