I'm new to docker and I'm doing a little bit of experimenting with it.
I was trying to create a docker image for an openldap service.
I tried creating the image starting from debian:latest image provided from the official docker repos.
This is the content of my Dockerfile
FROM debian
RUN DEBIAN_FRONTEND="noninteractive" apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install --yes --no-install-recommends slapd ldap-utils
RUN apt-get clean
I tried to create a container based on this image with
docker container run --interactive --tty --name=prova image
here image
is the name of the image build from the Dockerfile above.
When I try to run slapd with service slapd start
I get the following error:
[614.896012] Out of memory: Killed process 4005 (slapd) total-vm: 795276KB, anon-rss:334664KB, file-rss:8KB, shmem-rss:0kB, UID:101, pgtables:1108kB, oom_score_adj:0
So it seems to be a kernel error, due to explosion of the process inside the memory, though I cannot understand what causes it, the same ldap service works fine in the host system or in kvm virtual machines I created.
I've also tried to install openldap inside a live container created from the debian:latest
image, I get the same error.
So here's my question: can anyone explain what is going on here and what it's causing the error?
Thanks for your help.