shairport-sync is an Apple AirPlay receiver. It can receive audio directly from iOS devices, iTunes, etc. Multiple instances of shairport-sync will stay in sync with each other and other AirPlay devices when used with a compatible multi-room player, such as iTunes or forked-daapd.
docker run -d \ --net host \ --device /dev/snd \ -e AIRPLAY_NAME=Docker \ kevineye/shairport-sync
--net hostmust be run in host mode
--device /dev/sndshare host alsa system with container. Does not require
-e AIRPLAY_NAME=Dockerset the AirPlay device name. Defaults to Docker
- extra arguments will be passed to shairplay-sync (try
Send output to a named pipe:
mkfifo /some/pipe docker run -d \ --net host \ -v /some/pipe:/output \ kevineye/shairport-sync \ -o pipe \ -- /output
Thanks for this image. I'm trying to run it on my Synology NAS but when I try to run it with the following command:
docker run --rm -ti --name shairport --net host --device /dev/snd -e AIRPLAY_NAME=Chet a7aa676cbc09
I get this error:
docker: Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "/dev/snd": lstat /dev/snd: no such file or directory.
Do you have any idea how I can fix this?