You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Add the pair "ip hostname" to /etc/hosts on each containers,
@@ -182,18 +190,26 @@ Search on the second ldap server, and billy should show up!
182
190
objectClass: inetOrgPerson
183
191
[...]
184
192
193
+
### Fix docker mounted file problems
194
+
195
+
You may have some problems with mounted files on some systems. The startup script try to make some file adjustment and fix files owner and permissions, this can result in multiple errors. See [Docker documentation](https://docs.docker.com/v1.4/userguide/dockervolumes/#mount-a-host-file-as-a-data-volume).
196
+
197
+
To fix that run the container with `--copy-service` argument :
198
+
199
+
docker run [your options] osixia/openldap:1.1.1 --copy-service
200
+
185
201
### Debug
186
202
187
203
The container default log level is **info**.
188
204
Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
189
205
190
206
Example command to run the container in `debug` mode:
191
207
192
-
docker run --detach osixia/openldap:1.1.0 --loglevel debug
208
+
docker run --detach osixia/openldap:1.1.1 --loglevel debug
193
209
194
210
See all command line options:
195
211
196
-
docker run osixia/openldap:1.1.0 --help
212
+
docker run osixia/openldap:1.1.1 --help
197
213
198
214
199
215
## Environment Variables
@@ -251,7 +267,7 @@ Replication options:
251
267
252
268
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
253
269
254
-
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.1.0
270
+
docker run --env LDAP_REPLICATION_HOSTS="#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']" --detach osixia/openldap:1.1.1
255
271
256
272
To convert yaml to python online: http://yaml-online-parser.appspot.com/
257
273
@@ -266,7 +282,7 @@ Other environment variables:
266
282
Environment variables can be set by adding the --env argument in the command line, for example:
267
283
268
284
docker run --env LDAP_ORGANISATION="My company" --env LDAP_DOMAIN="my-company.com" \
Be aware that environment variable added in command line will be available at any time
272
288
in the container. In this example if someone manage to open a terminal in this container
@@ -277,28 +293,28 @@ he will be able to read the admin password in clear text from environment variab
277
293
For example if your environment files **my-env.yaml** and **my-env.yaml.startup** are in /data/ldap/environment
278
294
279
295
docker run --volume /data/ldap/environment:/container/environment/01-custom \
280
-
--detach osixia/openldap:1.1.0
296
+
--detach osixia/openldap:1.1.1
281
297
282
298
Take care to link your environment files folder to `/container/environment/XX-somedir` (with XX < 99 so they will be processed before default environment files) and not directly to `/container/environment` because this directory contains predefined baseimage environment files to fix container environment (INITRD, LANG, LANGUAGE and LC_CTYPE).
283
299
284
300
Note: the container will try to delete the **\*.yaml.startup** file after the end of startup files so the file will also be deleted on the docker host. To prevent that : use --volume /data/ldap/environment:/container/environment/01-custom**:ro** or set all variables in **\*.yaml** file and don't use **\*.yaml.startup**:
285
301
286
302
docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
287
-
--detach osixia/openldap:1.1.0
303
+
--detach osixia/openldap:1.1.1
288
304
289
305
#### Make your own image or extend this image
290
306
291
307
This is the best solution if you have a private registry. Please refer to the [Advanced User Guide](#advanced-user-guide) just below.
292
308
293
309
## Advanced User Guide
294
310
295
-
### Extend osixia/openldap:1.1.0 image
311
+
### Extend osixia/openldap:1.1.1 image
296
312
297
313
If you need to add your custom TLS certificate, bootstrap config or environment files the easiest way is to extends this image.
0 commit comments