Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping /var/lib/ldap to a local directory starts container with empty data #46

Open
micobarac opened this issue Feb 21, 2023 · 1 comment

Comments

@micobarac
Copy link

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

@rroemhild
Copy link
Owner

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants