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!")
@@ -94,7 +93,7 @@ When you create the container, do not set any arguments for any SQL settings. Th
94
93
95
94
## Usage
96
95
97
-
Here are some example snippets to help you get started creating a container.
96
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
98
97
99
98
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
100
99
@@ -135,7 +134,6 @@ services:
135
134
volumes:
136
135
- ./bookstack_db_data:/config
137
136
restart: unless-stopped
138
-
139
137
```
140
138
141
139
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))
@@ -157,12 +155,11 @@ docker run -d \
157
155
-v /path/to/data:/config \
158
156
--restart unless-stopped \
159
157
lscr.io/linuxserver/bookstack:latest
160
-
161
158
```
162
159
163
160
## Parameters
164
161
165
-
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.
162
+
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.
166
163
167
164
| Parameter | Function |
168
165
| :----: | --- |
@@ -186,10 +183,10 @@ You can set any environment variable from a file by using a special prepend `FIL
186
183
As an example:
187
184
188
185
```bash
189
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
186
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
190
187
```
191
188
192
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
189
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
193
190
194
191
## Umask for running applications
195
192
@@ -198,15 +195,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
198
195
199
196
## User / Group Identifiers
200
197
201
-
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
198
+
When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
202
199
203
200
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
204
201
205
-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
202
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
@@ -217,12 +219,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
217
219
218
220
## Support Info
219
221
220
-
* Shell access whilst the container is running: `docker exec -it bookstack /bin/bash`
221
-
* To monitor the logs of the container in realtime: `docker logs -f bookstack`
222
-
* container version number
223
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' bookstack`
224
-
* image version number
225
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/bookstack:latest`
222
+
* Shell access whilst the container is running:
223
+
224
+
```bash
225
+
docker exec -it bookstack /bin/bash
226
+
```
227
+
228
+
* To monitor the logs of the container in realtime:
229
+
230
+
```bash
231
+
docker logs -f bookstack
232
+
```
233
+
234
+
* Container version number:
235
+
236
+
```bash
237
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' bookstack
238
+
```
239
+
240
+
* Image version number:
241
+
242
+
```bash
243
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/bookstack:latest
244
+
```
226
245
227
246
## Updating Info
228
247
@@ -232,38 +251,83 @@ Below are the instructions for updating containers:
232
251
233
252
### Via Docker Compose
234
253
235
-
* Update all images: `docker-compose pull`
236
-
* or update a single image: `docker-compose pull bookstack`
237
-
* Let compose update all containers as necessary: `docker-compose up -d`
238
-
* or update a single container: `docker-compose up -d bookstack`
239
-
* You can also remove the old dangling images: `docker image prune`
254
+
* Update images:
255
+
* All images:
256
+
257
+
```bash
258
+
docker-compose pull
259
+
```
260
+
261
+
* Single image:
262
+
263
+
```bash
264
+
docker-compose pull bookstack
265
+
```
266
+
267
+
* Update containers:
268
+
* All containers:
269
+
270
+
```bash
271
+
docker-compose up -d
272
+
```
273
+
274
+
* Single container:
275
+
276
+
```bash
277
+
docker-compose up -d bookstack
278
+
```
279
+
280
+
* You can also remove the old dangling images:
281
+
282
+
```bash
283
+
docker image prune
284
+
```
240
285
241
286
### Via Docker Run
242
287
243
-
* Update the image: `docker pull lscr.io/linuxserver/bookstack:latest`
244
-
* Stop the running container: `docker stop bookstack`
245
-
* Delete the container: `docker rm bookstack`
288
+
* Update the image:
289
+
290
+
```bash
291
+
docker pull lscr.io/linuxserver/bookstack:latest
292
+
```
293
+
294
+
* Stop the running container:
295
+
296
+
```bash
297
+
docker stop bookstack
298
+
```
299
+
300
+
* Delete the container:
301
+
302
+
```bash
303
+
docker rm bookstack
304
+
```
305
+
246
306
* 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)
247
-
* You can also remove the old dangling images: `docker image prune`
307
+
* You can also remove the old dangling images:
308
+
309
+
```bash
310
+
docker image prune
311
+
```
248
312
249
313
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
250
314
251
315
* Pull the latest image at its tag and replace it with the same env variables in one run:
252
316
253
-
```bash
254
-
docker run --rm \
255
-
-v /var/run/docker.sock:/var/run/docker.sock \
256
-
containrrr/watchtower \
257
-
--run-once bookstack
258
-
```
317
+
```bash
318
+
docker run --rm \
319
+
-v /var/run/docker.sock:/var/run/docker.sock \
320
+
containrrr/watchtower \
321
+
--run-once bookstack
322
+
```
259
323
260
324
* You can also remove the old dangling images: `docker image prune`
261
325
262
-
**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).
326
+
**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.
330
+
**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