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
{{ message }}
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
[](https://blog.linuxserver.io"all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -80,7 +79,7 @@ It is recommended to set the `pipe_autostart` option to `true` in your forked-da
80
79
81
80
## Usage
82
81
83
-
Here are some example snippets to help you get started creating a container.
82
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
84
83
85
84
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
86
85
@@ -115,12 +114,11 @@ docker run -d \
115
114
-v /path/to/music:/music \
116
115
--restart unless-stopped \
117
116
lscr.io/linuxserver/daapd:latest
118
-
119
117
```
120
118
121
119
## Parameters
122
120
123
-
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.
121
+
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.
124
122
125
123
| Parameter | Function |
126
124
| :----: | --- |
@@ -138,10 +136,10 @@ You can set any environment variable from a file by using a special prepend `FIL
138
136
As an example:
139
137
140
138
```bash
141
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
139
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
142
140
```
143
141
144
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
142
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
145
143
146
144
## Umask for running applications
147
145
@@ -150,15 +148,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
150
148
151
149
## User / Group Identifiers
152
150
153
-
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`.
151
+
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`.
154
152
155
153
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
156
154
157
-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
155
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
@@ -169,12 +172,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
169
172
170
173
## Support Info
171
174
172
-
* Shell access whilst the container is running: `docker exec -it daapd /bin/bash`
173
-
* To monitor the logs of the container in realtime: `docker logs -f daapd`
174
-
* container version number
175
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' daapd`
176
-
* image version number
177
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/daapd:latest`
175
+
* Shell access whilst the container is running:
176
+
177
+
```bash
178
+
docker exec -it daapd /bin/bash
179
+
```
180
+
181
+
* To monitor the logs of the container in realtime:
182
+
183
+
```bash
184
+
docker logs -f daapd
185
+
```
186
+
187
+
* Container version number:
188
+
189
+
```bash
190
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' daapd
191
+
```
192
+
193
+
* Image version number:
194
+
195
+
```bash
196
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/daapd:latest
197
+
```
178
198
179
199
## Updating Info
180
200
@@ -184,38 +204,83 @@ Below are the instructions for updating containers:
184
204
185
205
### Via Docker Compose
186
206
187
-
* Update all images: `docker-compose pull`
188
-
* or update a single image: `docker-compose pull daapd`
189
-
* Let compose update all containers as necessary: `docker-compose up -d`
190
-
* or update a single container: `docker-compose up -d daapd`
191
-
* You can also remove the old dangling images: `docker image prune`
207
+
* Update images:
208
+
* All images:
209
+
210
+
```bash
211
+
docker-compose pull
212
+
```
213
+
214
+
* Single image:
215
+
216
+
```bash
217
+
docker-compose pull daapd
218
+
```
219
+
220
+
* Update containers:
221
+
* All containers:
222
+
223
+
```bash
224
+
docker-compose up -d
225
+
```
226
+
227
+
* Single container:
228
+
229
+
```bash
230
+
docker-compose up -d daapd
231
+
```
232
+
233
+
* You can also remove the old dangling images:
234
+
235
+
```bash
236
+
docker image prune
237
+
```
192
238
193
239
### Via Docker Run
194
240
195
-
* Update the image: `docker pull lscr.io/linuxserver/daapd:latest`
196
-
* Stop the running container: `docker stop daapd`
197
-
* Delete the container: `docker rm daapd`
241
+
* Update the image:
242
+
243
+
```bash
244
+
docker pull lscr.io/linuxserver/daapd:latest
245
+
```
246
+
247
+
* Stop the running container:
248
+
249
+
```bash
250
+
docker stop daapd
251
+
```
252
+
253
+
* Delete the container:
254
+
255
+
```bash
256
+
docker rm daapd
257
+
```
258
+
198
259
* 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)
199
-
* You can also remove the old dangling images: `docker image prune`
260
+
* You can also remove the old dangling images:
261
+
262
+
```bash
263
+
docker image prune
264
+
```
200
265
201
266
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
202
267
203
268
* Pull the latest image at its tag and replace it with the same env variables in one run:
204
269
205
-
```bash
206
-
docker run --rm \
207
-
-v /var/run/docker.sock:/var/run/docker.sock \
208
-
containrrr/watchtower \
209
-
--run-once daapd
210
-
```
270
+
```bash
271
+
docker run --rm \
272
+
-v /var/run/docker.sock:/var/run/docker.sock \
273
+
containrrr/watchtower \
274
+
--run-once daapd
275
+
```
211
276
212
277
* You can also remove the old dangling images: `docker image prune`
213
278
214
-
**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).
279
+
**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.
283
+
**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