Skip to content

Commit 958437c

Browse files
Bot Updating Templated Files
1 parent 732a03c commit 958437c

1 file changed

Lines changed: 100 additions & 35 deletions

File tree

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-your_spotify/blob/main/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-your_spotify/blob/main/.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!")
@@ -67,7 +66,7 @@ This ia an all-in-one container which includes both the server and client compon
6766

6867
## Usage
6968

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

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

@@ -110,12 +109,11 @@ docker run -d \
110109
-p 443:443 \
111110
--restart unless-stopped \
112111
lscr.io/linuxserver/your_spotify:latest
113-
114112
```
115113

116114
## Parameters
117115

118-
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.
116+
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.
119117

120118
| Parameter | Function |
121119
| :----: | --- |
@@ -137,10 +135,10 @@ You can set any environment variable from a file by using a special prepend `FIL
137135
As an example:
138136

139137
```bash
140-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
138+
-e FILE__MYVAR=/run/secrets/mysecretvariable
141139
```
142140

143-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
141+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
144142

145143
## Umask for running applications
146144

@@ -149,15 +147,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
149147

150148
## User / Group Identifiers
151149

152-
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`.
150+
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`.
153151

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

156-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
154+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
157155

158156
```bash
159-
$ id username
160-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
157+
id your_user
158+
```
159+
160+
Example output:
161+
162+
```text
163+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
161164
```
162165

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

169172
## Support Info
170173

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

178198
## Updating Info
179199

@@ -183,38 +203,83 @@ Below are the instructions for updating containers:
183203

184204
### Via Docker Compose
185205

186-
* Update all images: `docker-compose pull`
187-
* or update a single image: `docker-compose pull your_spotify`
188-
* Let compose update all containers as necessary: `docker-compose up -d`
189-
* or update a single container: `docker-compose up -d your_spotify`
190-
* You can also remove the old dangling images: `docker image prune`
206+
* Update images:
207+
* All images:
208+
209+
```bash
210+
docker-compose pull
211+
```
212+
213+
* Single image:
214+
215+
```bash
216+
docker-compose pull your_spotify
217+
```
218+
219+
* Update containers:
220+
* All containers:
221+
222+
```bash
223+
docker-compose up -d
224+
```
225+
226+
* Single container:
227+
228+
```bash
229+
docker-compose up -d your_spotify
230+
```
231+
232+
* You can also remove the old dangling images:
233+
234+
```bash
235+
docker image prune
236+
```
191237

192238
### Via Docker Run
193239

194-
* Update the image: `docker pull lscr.io/linuxserver/your_spotify:latest`
195-
* Stop the running container: `docker stop your_spotify`
196-
* Delete the container: `docker rm your_spotify`
240+
* Update the image:
241+
242+
```bash
243+
docker pull lscr.io/linuxserver/your_spotify:latest
244+
```
245+
246+
* Stop the running container:
247+
248+
```bash
249+
docker stop your_spotify
250+
```
251+
252+
* Delete the container:
253+
254+
```bash
255+
docker rm your_spotify
256+
```
257+
197258
* 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)
198-
* You can also remove the old dangling images: `docker image prune`
259+
* You can also remove the old dangling images:
260+
261+
```bash
262+
docker image prune
263+
```
199264

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

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

204-
```bash
205-
docker run --rm \
206-
-v /var/run/docker.sock:/var/run/docker.sock \
207-
containrrr/watchtower \
208-
--run-once your_spotify
209-
```
269+
```bash
270+
docker run --rm \
271+
-v /var/run/docker.sock:/var/run/docker.sock \
272+
containrrr/watchtower \
273+
--run-once your_spotify
274+
```
210275

211276
* You can also remove the old dangling images: `docker image prune`
212277

213-
**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).
278+
**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).
214279

215280
### Image Update Notifications - Diun (Docker Image Update Notifier)
216281

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

219284
## Building locally
220285

0 commit comments

Comments
 (0)