osixia / docker-openldap

OpenLDAP container image 🐳🌴
MIT License
4.06k stars 978 forks source link

setting LDAP_NOFILE at runtime seems not having any effect #652

Closed nix-power closed 1 year ago

nix-power commented 1 year ago

I am running the openldap container with the following:

--env LDAP_NOFILE=64000

but after container starts, I am checking the ulimit -n for openldap user, it still shows 1024 (default value)

[GCP root@ldap-1:ldap]# docker exec -it openldap bash
root@ldap-3:/#
root@ldap-3:/#
root@ldap-3:/# su - openldap
su: warning: cannot change directory to /home/openldap: No such file or directory
$
$
$ ulimit -n
1024
nix-power commented 1 year ago

I suspect this is the reason that container is stopped once in several hours by itself.

nix-power commented 1 year ago

Checking the running container /proc/${PID}/limits revealed that nofile updated properly