Update INSTALL.md
This commit is contained in:
parent
7bcf8e97af
commit
5a75dc9b98
20
INSTALL.md
20
INSTALL.md
@ -0,0 +1,20 @@
|
|||||||
|
# ldapdock
|
||||||
|
*_a configurable container running openLDAP_*
|
||||||
|
|
||||||
|
Step by step approach on how to setup and run an openLDAP server on a systemd-less docker image container
|
||||||
|
|
||||||
|
## _1- Creating the ldapdock image container_
|
||||||
|
|
||||||
|
build ldapdock from the dockerfile and run into it
|
||||||
|
|
||||||
|
```
|
||||||
|
> docker build -t ldapdock /path/to/dockerfile
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
> docker run -h example.com -i -t -v ldap_data:/var/lib/ldap -v ldap_config:/etc/ldap/slapd.d ldapdock /bin/bash
|
||||||
|
```
|
||||||
|
`Parameters explanation:`with -h we are specifying the name of the host, we are using example.com, this is very important. -i tells docker to run in an interactive way instead of running the container in the background. -t goes in hand with -i, and allocates a tty (terminal) so we can run commands. -v mounts a volume to save miscellaneous data in general, and config, content such as directories, databases and users.
|
||||||
|
|
||||||
|
## _2- Run the openLDAP server and create an admin user_
|
||||||
|
|
Loading…
Reference in New Issue
Block a user