Hey folks, I've got lldap up and running using the...
# troubleshooting
d
Hey folks, I've got lldap up and running using the docker container -- but one thing I'm unclear about is the "You should persist the /data folder" part. I understand the concept (i.e. not have the data get deleted when the container restarts) -- but I don't know how to do this part. Google searches are generally returning a wide variety of ways to mount directories in host file systems and/or containers, but I don't clearly understand what this part of the lldap directions are asking for. Can someone who has done the docker setup help me understand what I should do for this part? It'd be nice if there were an example command in the documentation rather than just the general statement to persist the folder. While I have used docker before, I'm rusty and fumbling a bit on this -- sorry 🙂 Thank you in advance...
n
Here's a brand new thread for you! Please keep the discussion for this problem in this thread.
t
Are you using Portainer or the Docker command line?
d
Docker command line -- I think I might have it persisting the way the lldap dock alludes to, but can you sanity check me? sudo docker volume create lldap-data sudo docker run -d --name --mount source=lldap-data,target=/data --restart unless-stopped -p 80:17170 -p 389:3890 nitnelave/lldap
t
I use a similar command, but I use the volume flag instead: sudo docker run -d --name lldap --volume=place_where_data_is_stored:/data --restart unless-stopped -p 80:17170 -p 389:3890 nitnelave/lldap. But both should work. The --mount is just a more verbose way to set a volume
The docker documentation does a pretty good job of explaining anything you might be missing: https://docs.docker.com/storage/volumes/. Hopefully that answered your question!
d
Makes sense -- thank you!
t
No problem! Happy to help