Skip to content

beacloudgenius/rpi-docker-shairport-sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

This project was forked from kevineye/docker-shairport-sync and adapted to run on the Raspberry Pi.

Build Status Docker Stars Docker Pulls ImageLayers

Build

docker build -t cloudgenius/shairport .

Run

docker run -d \
    --name shairport \
    --net host \
    --device /dev/snd \
    -e AIRPLAY_NAME=pi \
    cloudgenius/shairport

Run using docker-compose.yaml

docker-compose up -d

Parameters

  • --net host must be run in host mode
  • --device /dev/snd share host alsa system with container. Does not require --privileged as -v /dev/snd:/dev/snd would
  • -e AIRPLAY_NAME=Docker set the AirPlay device name. Defaults to Docker
  • extra arguments will be passed to shairplay-sync (try -- help)

More examples

Send output to a named pipe:

mkfifo /some/pipe
docker run -d \
    --name shairport-pipe \
    --net host \
    --device /dev/snd \
    -e AIRPLAY_NAME=Docker \
    -v /some/pipe:/output \
    cloudgenius/shairport \
        -o pipe \
        -- /output

About

Docker container running shairport-sync audio (AirPlay) receiver for Raspberry Pi

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Dockerfile 83.9%
  • Shell 16.1%