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
Copy file name to clipboardExpand all lines: README.md
+34-23Lines changed: 34 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,13 @@
1
1
# osixia/phpldapadmin
2
2
3
-
[](https://imagelayers.io/?images=osixia/phpldapadmin:latest'Get your own badge on imagelayers.io') | Latest release: 0.6.7 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/)
@@ -66,7 +69,7 @@ but setting your own config.php is possible. 2 options:
66
69
67
70
- Link your config file at run time to `/container/service/phpldapadmin/assets/config.php` :
68
71
69
-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.7
72
+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.8
70
73
71
74
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide)
72
75
@@ -75,7 +78,7 @@ but setting your own config.php is possible. 2 options:
75
78
#### Use autogenerated certificate
76
79
By default HTTPS is enable, a certificate is created with the container hostname (it can be set by docker run --hostname option eg: phpldapadmin.my-company.com).
77
80
78
-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.7
81
+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.8
79
82
80
83
#### Use your own certificate
81
84
@@ -85,14 +88,22 @@ You can set your custom certificate at run time, by mounting a directory contain
Other solutions are available please refer to the [Advanced User Guide](#advanced-user-guide)
91
94
92
95
#### Disable HTTPS
93
96
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
94
97
95
-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.7
98
+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.8
99
+
100
+
### Fix docker mounted file problems
101
+
102
+
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).
103
+
104
+
To fix that run the container with `--copy-service` argument :
105
+
106
+
docker run [your options] osixia/phpldapadmin:0.6.8 --copy-service
96
107
97
108
### Debug
98
109
@@ -101,11 +112,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
101
112
102
113
Example command to run the container in `debug` mode:
103
114
104
-
docker run --detach osixia/phpldapadmin:0.6.7 --loglevel debug
115
+
docker run --detach osixia/phpldapadmin:0.6.8 --loglevel debug
105
116
106
117
See all command line options:
107
118
108
-
docker run osixia/phpldapadmin:0.6.7 --help
119
+
docker run osixia/phpldapadmin:0.6.8 --help
109
120
110
121
## Environment Variables
111
122
@@ -158,7 +169,7 @@ See how to [set your own environment variables](#set-your-own-environment-variab
158
169
159
170
If you want to set this variable at docker run command add the tag `#PYTHON2BASH:` and convert the yaml in python:
To convert yaml to python online: http://yaml-online-parser.appspot.com/
164
175
@@ -191,14 +202,14 @@ Other environment variables:
191
202
Environment variables can be set by adding the --env argument in the command line, for example:
192
203
193
204
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
194
-
--detach osixia/phpldapadmin:0.6.7
205
+
--detach osixia/phpldapadmin:0.6.8
195
206
196
207
#### Link environment file
197
208
198
209
For example if your environment file is in : /data/environment/my-env.yaml
199
210
200
211
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
201
-
--detach osixia/phpldapadmin:0.6.7
212
+
--detach osixia/phpldapadmin:0.6.8
202
213
203
214
Take care to link your environment file 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).
204
215
@@ -208,13 +219,13 @@ This is the best solution if you have a private registry. Please refer to the [A
208
219
209
220
## Advanced User Guide
210
221
211
-
### Extend osixia/phpldapadmin:0.6.7 image
222
+
### Extend osixia/phpldapadmin:0.6.8 image
212
223
213
224
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