Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit 8a970de

Browse files
Bot Updating Templated Files
1 parent cd20e87 commit 8a970de

File tree

1 file changed

+100
-35
lines changed

1 file changed

+100
-35
lines changed

README.md

Lines changed: 100 additions & 35 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-booksonic-air/blob/master/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-booksonic-air/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!")
@@ -66,7 +65,7 @@ Whilst this is a more up to date rebase of the original Booksonic server, upgrad
6665

6766
## Usage
6867

69-
Here are some example snippets to help you get started creating a container.
68+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
7069

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

@@ -108,12 +107,11 @@ docker run -d \
108107
-v /path/to/othermedia:/othermedia \
109108
--restart unless-stopped \
110109
lscr.io/linuxserver/booksonic-air:latest
111-
112110
```
113111

114112
## Parameters
115113

116-
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.
114+
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.
117115

118116
| Parameter | Function |
119117
| :----: | --- |
@@ -134,10 +132,10 @@ You can set any environment variable from a file by using a special prepend `FIL
134132
As an example:
135133

136134
```bash
137-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
135+
-e FILE__MYVAR=/run/secrets/mysecretvariable
138136
```
139137

140-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
138+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
141139

142140
## Umask for running applications
143141

@@ -146,15 +144,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
146144

147145
## User / Group Identifiers
148146

149-
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`.
147+
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`.
150148

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

153-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
151+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
154152

155153
```bash
156-
$ id username
157-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
154+
id your_user
155+
```
156+
157+
Example output:
158+
159+
```text
160+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
158161
```
159162

160163
## Docker Mods
@@ -165,12 +168,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
165168

166169
## Support Info
167170

168-
* Shell access whilst the container is running: `docker exec -it booksonic-air /bin/bash`
169-
* To monitor the logs of the container in realtime: `docker logs -f booksonic-air`
170-
* container version number
171-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' booksonic-air`
172-
* image version number
173-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/booksonic-air:latest`
171+
* Shell access whilst the container is running:
172+
173+
```bash
174+
docker exec -it booksonic-air /bin/bash
175+
```
176+
177+
* To monitor the logs of the container in realtime:
178+
179+
```bash
180+
docker logs -f booksonic-air
181+
```
182+
183+
* Container version number:
184+
185+
```bash
186+
docker inspect -f '{{ index .Config.Labels "build_version" }}' booksonic-air
187+
```
188+
189+
* Image version number:
190+
191+
```bash
192+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/booksonic-air:latest
193+
```
174194

175195
## Updating Info
176196

@@ -180,38 +200,83 @@ Below are the instructions for updating containers:
180200

181201
### Via Docker Compose
182202

183-
* Update all images: `docker-compose pull`
184-
* or update a single image: `docker-compose pull booksonic-air`
185-
* Let compose update all containers as necessary: `docker-compose up -d`
186-
* or update a single container: `docker-compose up -d booksonic-air`
187-
* You can also remove the old dangling images: `docker image prune`
203+
* Update images:
204+
* All images:
205+
206+
```bash
207+
docker-compose pull
208+
```
209+
210+
* Single image:
211+
212+
```bash
213+
docker-compose pull booksonic-air
214+
```
215+
216+
* Update containers:
217+
* All containers:
218+
219+
```bash
220+
docker-compose up -d
221+
```
222+
223+
* Single container:
224+
225+
```bash
226+
docker-compose up -d booksonic-air
227+
```
228+
229+
* You can also remove the old dangling images:
230+
231+
```bash
232+
docker image prune
233+
```
188234

189235
### Via Docker Run
190236

191-
* Update the image: `docker pull lscr.io/linuxserver/booksonic-air:latest`
192-
* Stop the running container: `docker stop booksonic-air`
193-
* Delete the container: `docker rm booksonic-air`
237+
* Update the image:
238+
239+
```bash
240+
docker pull lscr.io/linuxserver/booksonic-air:latest
241+
```
242+
243+
* Stop the running container:
244+
245+
```bash
246+
docker stop booksonic-air
247+
```
248+
249+
* Delete the container:
250+
251+
```bash
252+
docker rm booksonic-air
253+
```
254+
194255
* 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)
195-
* You can also remove the old dangling images: `docker image prune`
256+
* You can also remove the old dangling images:
257+
258+
```bash
259+
docker image prune
260+
```
196261

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

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

201-
```bash
202-
docker run --rm \
203-
-v /var/run/docker.sock:/var/run/docker.sock \
204-
containrrr/watchtower \
205-
--run-once booksonic-air
206-
```
266+
```bash
267+
docker run --rm \
268+
-v /var/run/docker.sock:/var/run/docker.sock \
269+
containrrr/watchtower \
270+
--run-once booksonic-air
271+
```
207272

208273
* You can also remove the old dangling images: `docker image prune`
209274

210-
**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).
275+
**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).
211276

212277
### Image Update Notifications - Diun (Docker Image Update Notifier)
213278

214-
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
279+
**tip**: We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
215280

216281
## Building locally
217282

0 commit comments

Comments
 (0)