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
[](https://blog.linuxserver.io"all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -67,7 +66,7 @@ The architectures supported by this image are:
67
66
68
67
## Usage
69
68
70
-
Here are some example snippets to help you get started creating a container.
69
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
71
70
72
71
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
73
72
@@ -100,12 +99,11 @@ docker run -d \
100
99
-p 9000:9000 \
101
100
--restart unless-stopped \
102
101
lscr.io/linuxserver/ldap-auth:latest
103
-
104
102
```
105
103
106
104
## Parameters
107
105
108
-
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
106
+
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
109
107
110
108
| Parameter | Function |
111
109
| :----: | --- |
@@ -122,10 +120,10 @@ You can set any environment variable from a file by using a special prepend `FIL
122
120
As an example:
123
121
124
122
```bash
125
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
123
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
126
124
```
127
125
128
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
126
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
129
127
130
128
## Umask for running applications
131
129
@@ -140,12 +138,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
140
138
141
139
## Support Info
142
140
143
-
* Shell access whilst the container is running: `docker exec -it ldap-auth /bin/bash`
144
-
* To monitor the logs of the container in realtime: `docker logs -f ldap-auth`
145
-
* container version number
146
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' ldap-auth`
147
-
* image version number
148
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/ldap-auth:latest`
141
+
* Shell access whilst the container is running:
142
+
143
+
```bash
144
+
docker exec -it ldap-auth /bin/bash
145
+
```
146
+
147
+
* To monitor the logs of the container in realtime:
148
+
149
+
```bash
150
+
docker logs -f ldap-auth
151
+
```
152
+
153
+
* Container version number:
154
+
155
+
```bash
156
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' ldap-auth
157
+
```
158
+
159
+
* Image version number:
160
+
161
+
```bash
162
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/ldap-auth:latest
163
+
```
149
164
150
165
## Updating Info
151
166
@@ -155,38 +170,83 @@ Below are the instructions for updating containers:
155
170
156
171
### Via Docker Compose
157
172
158
-
* Update all images: `docker-compose pull`
159
-
* or update a single image: `docker-compose pull ldap-auth`
160
-
* Let compose update all containers as necessary: `docker-compose up -d`
161
-
* or update a single container: `docker-compose up -d ldap-auth`
162
-
* You can also remove the old dangling images: `docker image prune`
173
+
* Update images:
174
+
* All images:
175
+
176
+
```bash
177
+
docker-compose pull
178
+
```
179
+
180
+
* Single image:
181
+
182
+
```bash
183
+
docker-compose pull ldap-auth
184
+
```
185
+
186
+
* Update containers:
187
+
* All containers:
188
+
189
+
```bash
190
+
docker-compose up -d
191
+
```
192
+
193
+
* Single container:
194
+
195
+
```bash
196
+
docker-compose up -d ldap-auth
197
+
```
198
+
199
+
* You can also remove the old dangling images:
200
+
201
+
```bash
202
+
docker image prune
203
+
```
163
204
164
205
### Via Docker Run
165
206
166
-
* Update the image: `docker pull lscr.io/linuxserver/ldap-auth:latest`
167
-
* Stop the running container: `docker stop ldap-auth`
168
-
* Delete the container: `docker rm ldap-auth`
207
+
* Update the image:
208
+
209
+
```bash
210
+
docker pull lscr.io/linuxserver/ldap-auth:latest
211
+
```
212
+
213
+
* Stop the running container:
214
+
215
+
```bash
216
+
docker stop ldap-auth
217
+
```
218
+
219
+
* Delete the container:
220
+
221
+
```bash
222
+
docker rm ldap-auth
223
+
```
224
+
169
225
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
170
-
* You can also remove the old dangling images: `docker image prune`
226
+
* You can also remove the old dangling images:
227
+
228
+
```bash
229
+
docker image prune
230
+
```
171
231
172
232
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
173
233
174
234
* Pull the latest image at its tag and replace it with the same env variables in one run:
175
235
176
-
```bash
177
-
docker run --rm \
178
-
-v /var/run/docker.sock:/var/run/docker.sock \
179
-
containrrr/watchtower \
180
-
--run-once ldap-auth
181
-
```
236
+
```bash
237
+
docker run --rm \
238
+
-v /var/run/docker.sock:/var/run/docker.sock \
239
+
containrrr/watchtower \
240
+
--run-once ldap-auth
241
+
```
182
242
183
243
* You can also remove the old dangling images: `docker image prune`
184
244
185
-
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
245
+
**warning**: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
249
+
**tip**: We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
0 commit comments