Allow passing arguments via environment variable

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-02-05 20:29:49 +01:00
parent bea0faf488
commit f79c3e1579
5 changed files with 6 additions and 9 deletions
+4 -3
View File
@@ -31,11 +31,12 @@ $ docker run -d --restart unless-stopped --net host --device /dev/snd \
### Options
Command line options will be passed to Shairport Sync. Here is an example:
To pass command line options to Shairport Sync they need to be set with `-e ARG=`. Here is an example:
```
$ docker run -d --restart unless-stopped --net host --device /dev/snd \
mikebrady/shairport-sync:latest \
-v --statistics -a DenSystem -d hw:0 -c PCM
-e ARG="-v --statistics -a DenSystem -d hw:0 -c PCM" \
mikebrady/shairport-sync:latest
```
This will send audio to alsa hardware device `hw:0` and make use of the that device's mixer control called `PCM`. The service will be visible as `DenSystem` on the network.