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 @@ This ia an all-in-one container which includes both the server and client compon
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
@@ -110,12 +109,11 @@ docker run -d \
110
109
-p 443:443 \
111
110
--restart unless-stopped \
112
111
lscr.io/linuxserver/your_spotify:latest
113
-
114
112
```
115
113
116
114
## Parameters
117
115
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.
119
117
120
118
| Parameter | Function |
121
119
| :----: | --- |
@@ -137,10 +135,10 @@ You can set any environment variable from a file by using a special prepend `FIL
137
135
As an example:
138
136
139
137
```bash
140
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
138
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
141
139
```
142
140
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.
144
142
145
143
## Umask for running applications
146
144
@@ -149,15 +147,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
149
147
150
148
## User / Group Identifiers
151
149
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`.
153
151
154
152
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
155
153
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:
* 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
+
```
199
264
200
265
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
201
266
202
267
* Pull the latest image at its tag and replace it with the same env variables in one run:
203
268
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
+
```
210
275
211
276
* You can also remove the old dangling images: `docker image prune`
212
277
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).
* 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.
0 commit comments