This is the Docker image that I'm currently using to run Mopidy.
It probably won't be exactly the setup you want, but feel free to create a fork for your own setup.
Build on PC
docker build --pull -t kevlar10/mopidy --build-arg BUILD_FROM=debian:stable-slim .
Build on Raspberry Pi
docker build --pull -t kevlar10/mopidy --build-arg BUILD_FROM=balenalib/rpi-raspbian:latest .
Run in foreground:
docker run --rm \
--name mopidy \
--device /dev/snd \
--net=host \
-it \
jjok/mopidy
Run in background:
docker run --restart=unless-stopped \
--name mopidy \
--device /dev/snd \
--net=host \
-d \
kevlar10/mopidy
View logs:
docker logs -f mopidy
Execute any Mopidy command:
docker exec mopidy mopidy <cmd>
docker exec mopidy mopidy config
docker exec mopidy mopidy deps
sudo apt install docker-ceDockerfile, requirements.txt and mopidy.conf to the Pi.build command (takes around 45 minutes on Pi 2)Content type
Image
Digest
Size
326.5 MB
Last updated
over 5 years ago
docker pull kevlar10/mopidy