adding command

This commit is contained in:
Sam Merry
2019-01-22 19:14:56 -08:00
committed by Werner Beroux
parent fa853b8b00
commit 51b71af114
2 changed files with 13 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ COPY pulse-client.conf /etc/pulse/client.conf
# Allows any user to run mopidy, but runs by default as a randomly generated UID/GID.
ENV HOME=/var/lib/mopidy
RUN set -ex \
&& usermod -u 84044 -G audio,sudo mopidy \
&& usermod -G audio,sudo mopidy \
&& chown mopidy:audio -R $HOME /entrypoint.sh \
&& chmod go+rwX -R $HOME /entrypoint.sh

View File

@@ -207,3 +207,15 @@ Having more issues? [Report a bug on GitHub](https://github.com/wernight/docker-
### Alsa Audio
For non debian distros. The gid for audio group in /etc/group must be 29 to match debians default as `audio:x:29:<your user outside of docker>` this is to match the user id inside the docker container. You'll also need to add the `output = alsasink` config line under the audio section in your `mopidy.conf`.
```
alias mopidy='docker run -d -rm -u root \
--device /dev/snd \
--name mopidy \
--ipc=host \
--privileged \
-v $HOME/.config/mopidy:/var/lib/mopidy/.config/mopidy/ \
-p 6600:6600/tcp -p 6680:6680/tcp -p 5555:5555/udp \
mopidy'
```