Cannot build a working docker image for an openldap service
Solution 1:
Running service slapd start
inside a docker container will probably waste some resources, in you case memory, since it needs to run the initd and some shell processes, thus triggering oom-killer quicker than single process container.
You can check the Dockerfile
from a well used openldap docker image [1], which runs slapd
process directly.
If you are preparing an image for production use, you should also think about Backups and TLS, which are supported by osixia/docker-openldap
[1] and docker-openldap-backup
[2]
[1] https://github.com/osixia/docker-openldap
[2] https://github.com/osixia/docker-openldap-backup
Solution 2:
You have an out of memory error and your process is being killed by the kernel. The process allocated a mere 334664KB
of RSS
, you need to increase your memory limits.