[GH-ISSUE #46] Mapping /var/lib/ldap to a local directory starts container with empty data #27

Open
opened 2026-02-27 16:47:42 +03:00 by kerem · 1 comment
Owner

Originally created by @micobarac on GitHub (Feb 21, 2023).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/46

docker run --rm \
           -v ~/OpenLDAP/ldap:/var/lib/ldap \
           -p 10389:10389 \
           -p 10636:10636 \
           -d \
           rroemhild/test-openldap

Screenshot 2023-02-21 at 10 36 08

Originally created by @micobarac on GitHub (Feb 21, 2023). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/46 ``` docker run --rm \ -v ~/OpenLDAP/ldap:/var/lib/ldap \ -p 10389:10389 \ -p 10636:10636 \ -d \ rroemhild/test-openldap ``` ![Screenshot 2023-02-21 at 10 36 08](https://user-images.githubusercontent.com/16001837/220306434-ac31544f-53a4-4f1c-bc78-cc6ae7f94802.png)
Author
Owner

@rroemhild commented on GitHub (Sep 16, 2023):

This is because the LDAP database is initialised when the image is created, rather than when it is booted for the first time. The idea behind this is that this Docker image is used to create a working LDAP for unit testing etc, not to store the data persistently.

<!-- gh-comment-id:1722201886 --> @rroemhild commented on GitHub (Sep 16, 2023): This is because the LDAP database is initialised when the image is created, rather than when it is booted for the first time. The idea behind this is that this Docker image is used to create a working LDAP for unit testing etc, not to store the data persistently.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-test-openldap#27
No description provided.