Skip to content

Commit 7a787f9

Browse files
Bot Updating Templated Files
1 parent 32c7e15 commit 7a787f9

File tree

1 file changed

+100
-36
lines changed

1 file changed

+100
-36
lines changed

README.md

Lines changed: 100 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2-
<!-- Please read the https://github.com/linuxserver/docker-bookstack/blob/master/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-bookstack/blob/master/.github/CONTRIBUTING.md -->
43
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
54

65
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](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
9493

9594
## Usage
9695

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.
9897

9998
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
10099

@@ -135,7 +134,6 @@ services:
135134
volumes:
136135
- ./bookstack_db_data:/config
137136
restart: unless-stopped
138-
139137
```
140138
141139
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))
@@ -157,12 +155,11 @@ docker run -d \
157155
-v /path/to/data:/config \
158156
--restart unless-stopped \
159157
lscr.io/linuxserver/bookstack:latest
160-
161158
```
162159

163160
## Parameters
164161

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.
166163

167164
| Parameter | Function |
168165
| :----: | --- |
@@ -186,10 +183,10 @@ You can set any environment variable from a file by using a special prepend `FIL
186183
As an example:
187184

188185
```bash
189-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
186+
-e FILE__MYVAR=/run/secrets/mysecretvariable
190187
```
191188

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.
193190

194191
## Umask for running applications
195192

@@ -198,15 +195,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
198195

199196
## User / Group Identifiers
200197

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`.
202199

203200
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
204201

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:
206203

207204
```bash
208-
$ id username
209-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
205+
id your_user
206+
```
207+
208+
Example output:
209+
210+
```text
211+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
210212
```
211213

212214
## Docker Mods
@@ -217,12 +219,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
217219

218220
## Support Info
219221

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+
```
226245

227246
## Updating Info
228247

@@ -232,38 +251,83 @@ Below are the instructions for updating containers:
232251

233252
### Via Docker Compose
234253

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+
```
240285

241286
### Via Docker Run
242287

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+
246306
* 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+
```
248312

249313
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
250314

251315
* Pull the latest image at its tag and replace it with the same env variables in one run:
252316

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+
```
259323

260324
* You can also remove the old dangling images: `docker image prune`
261325

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).
263327

264328
### Image Update Notifications - Diun (Docker Image Update Notifier)
265329

266-
* 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.
267331

268332
## Building locally
269333

0 commit comments

Comments
 (0)