kevineye / docker-shairport-sync Goto Github PK
View Code? Open in Web Editor NEWDocker container for shairport-sync audio (AirPlay) receiver
Docker container for shairport-sync audio (AirPlay) receiver
I have multiple sound cards for which I want to run this container. What are the options to use to avoid "fatal error: Could not establish a service on port 5000 -- program terminating. Is another instance of Shairport Sync running on this device?"
I'm not sure if this docker is still alive or dead, but i'm having issues with starting this one and another one, similiar
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4554:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4554:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4554:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5033:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM default
That's all what it tells me in log. However, my default PCM card, device are set to 1 in alsa config and when i use it to play local file on 'default pcm' it plays correctly, but docker via alsa seems to be looking for device number 0, which does not exist in my system.
Any clues?
Any way to build SPS with mqtt using this? can't get any of the additional commands that I've tried to work.
I'm new to docker and need some help.
mkfifo /some/pipe
docker run -d
--name shairport-pipe
--net host
--device /dev/snd
-e AIRPLAY_NAME=Docker
-v /some/pipe:/output
kevineye/shairport-sync
-o pipe
-- /output"
So everything is clear except for the last two lines. I created a pipe, I gave the docker an custom AIRPLAY_NAME, I configured the output directory, but what exactly do I have to do regarding "-o pipe" and "-- /output"?
I run:
docker run -d \
--net host \
--device /dev/snd \
-e AIRPLAY_NAME=Docker \
kevineye/shairport-sync
and I get this error in the logs whenever I try and play music:
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
I tried to google the issue but no working solution. Any help would be great!
would it be possible to output the metadata as well for forked-daapd?
kevineye,
do you would like what the problem?
HypriotOS/armv6: pirate@black-pearl in ~
$ docker run -d --name shairport --net host --device /dev/snd -e AIRPLAY_NAME=Docker kevineye/shairport-sync
8653d10dc625fe3e9f8f29aa34036740df40c234b1c951472c46a74f2eaf9e39
HypriotOS/armv6: pirate@black-pearl in ~
$ docker logs shairport
standard_init_linux.go:175: exec user process caused "exec format error"
HypriotOS/armv6: pirate@black-pearl in ~
$ docker info
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: 1.12.1
Storage Driver: overlay
Backing Filesystem: extfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge overlay host null
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.4.15-hypriotos+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv6l
CPUs: 1
Total Memory: 370.7 MiB
Name: black-pearl
ID: NYJC:LNSZ:Z4B3:XGBM:GENT:L7B4:LZLI:IIQI:3YII:VPFF:UCEO:JCOE
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No cpuset support
Insecure Registries:
127.0.0.0/8
HypriotOS/armv6: pirate@black-pearl in ~
$ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
HYPRIOT_OS="HypriotOS/armhf"
HYPRIOT_OS_VERSION="v1.0.0"
HYPRIOT_DEVICE="Raspberry Pi"
HYPRIOT_IMAGE_VERSION="v1.0.0"
HypriotOS/armv6: pirate@black-pearl in ~
$ docker run -ti --rm --net host --device /dev/snd -e AIRPLAY_NAME=Docker kevineye/shairport-sync bash
standard_init_linux.go:175: exec user process caused "exec format error"
HypriotOS/armv6: pirate@black-pearl in ~
$ docker run -ti --rm --net host --device /dev/snd -e AIRPLAY_NAME=Docker kevineye/shairport-sync uname -a
standard_init_linux.go:175: exec user process caused "exec format error"
docker logs shairport
Timeout reached while wating for return value
Could not receive return value from daemon process.
any hints how to get it to work
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.