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
+26-17Lines changed: 26 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
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/)
3
+
[](https://imagelayers.io/?images=osixia/phpldapadmin:latest'Get your own badge on imagelayers.io') | Latest release: 0.6.8 - [Changelog](CHANGELOG.md) | [Docker Hub](https://hub.docker.com/r/osixia/phpldapadmin/)
@@ -66,7 +67,7 @@ but setting your own config.php is possible. 2 options:
66
67
67
68
- Link your config file at run time to `/container/service/phpldapadmin/assets/config.php` :
68
69
69
-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.7
70
+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.6.8
70
71
71
72
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide)
72
73
@@ -75,7 +76,7 @@ but setting your own config.php is possible. 2 options:
75
76
#### Use autogenerated certificate
76
77
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
78
78
-
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.7
79
+
docker run --hostname phpldapadmin.my-company.com --detach osixia/phpldapadmin:0.6.8
79
80
80
81
#### Use your own certificate
81
82
@@ -85,14 +86,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
92
92
93
#### Disable HTTPS
93
94
Add --env PHPLDAPADMIN_HTTPS=false to the run command :
94
95
95
-
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.7
96
+
docker run --env PHPLDAPADMIN_HTTPS=false --detach osixia/phpldapadmin:0.6.8
97
+
98
+
### Fix docker mounted file problems
99
+
100
+
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).
101
+
102
+
To fix that run the container with `--copy-service` argument :
103
+
104
+
docker run [your options] osixia/phpldapadmin:0.6.8 --copy-service
96
105
97
106
### Debug
98
107
@@ -101,11 +110,11 @@ Available levels are: `none`, `error`, `warning`, `info`, `debug` and `trace`.
101
110
102
111
Example command to run the container in `debug` mode:
103
112
104
-
docker run --detach osixia/phpldapadmin:0.6.7 --loglevel debug
113
+
docker run --detach osixia/phpldapadmin:0.6.8 --loglevel debug
105
114
106
115
See all command line options:
107
116
108
-
docker run osixia/phpldapadmin:0.6.7 --help
117
+
docker run osixia/phpldapadmin:0.6.8 --help
109
118
110
119
## Environment Variables
111
120
@@ -158,7 +167,7 @@ See how to [set your own environment variables](#set-your-own-environment-variab
158
167
159
168
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
173
@@ -191,14 +200,14 @@ Other environment variables:
191
200
Environment variables can be set by adding the --env argument in the command line, for example:
192
201
193
202
docker run --env PHPLDAPADMIN_LDAP_HOSTS="ldap.example.org" \
194
-
--detach osixia/phpldapadmin:0.6.7
203
+
--detach osixia/phpldapadmin:0.6.8
195
204
196
205
#### Link environment file
197
206
198
207
For example if your environment file is in : /data/environment/my-env.yaml
199
208
200
209
docker run --volume /data/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
201
-
--detach osixia/phpldapadmin:0.6.7
210
+
--detach osixia/phpldapadmin:0.6.8
202
211
203
212
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
213
@@ -208,13 +217,13 @@ This is the best solution if you have a private registry. Please refer to the [A
208
217
209
218
## Advanced User Guide
210
219
211
-
### Extend osixia/phpldapadmin:0.6.7 image
220
+
### Extend osixia/phpldapadmin:0.6.8 image
212
221
213
222
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