Closed nix-power closed 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)
ulimit -n
[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
I suspect this is the reason that container is stopped once in several hours by itself.
Checking the running container /proc/${PID}/limits revealed that nofile updated properly
I am running the openldap container with the following:
but after container starts, I am checking the
ulimit -n
for openldap user, it still shows 1024 (default value)