mirror of
https://github.com/rroemhild/docker-test-openldap.git
synced 2026-04-25 15:15:53 +03:00
[GH-ISSUE #51] Start of slapd in Docker image fails with core dump #32
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-test-openldap#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jbaesner on GitHub (Oct 20, 2023).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/51
Today (20.10.2023) I cleaned up my local Docker environment, to have no images containters, etc. anymore locally stored.
Then I pulled the image as describes in the
README.md:me@p1 ~ $ docker pull ghcr.io/rroemhild/docker-test-openldap:masterAfter that I started the Container with:
me@p1 ~ $ docker run --rm -p 10389:10389 -p 10636:10636 ghcr.io/rroemhild/docker-test-openldap:masterThe result is that the start of
slapdfails with a core dump, see:@rroemhild commented on GitHub (Oct 23, 2023):
This looks like a memory problem. Please try add
--ulimit nofile=1024:@jbaesner commented on GitHub (Oct 23, 2023):
Thanks a lot, that resolves the issue and the cotainer is starting fine!
@earl-warren commented on GitHub (Oct 11, 2025):
Since slapd allocates ~1K * ulimit -n at startup and the default in a docker container is 1,000,000, that allocates 1GB of resident memory by default, at boot, each time slapd is run. Once for populating and another when running as a daemon.
While this is not usually a problem, it is two order of magnitude more memory than required and can be trivially solved by adding
ulimit -n 1024before each invocation.Can I suggest re-opening this issue so it can be resolved?