mikebrady / shairport-sync-docker

Docker setup for Shairport Sync
MIT License
49 stars 19 forks source link

docker container doens't seem to start #7

Open panomitrius opened 3 years ago

panomitrius commented 3 years ago

Running this with the default configuration creates a container but it doesn't seem to work at all. docker ps shows:

CONTAINER ID   IMAGE                                COMMAND                  CREATED              STATUS                          PORTS                                                                      NAMES
33aea0ae60bc   mikebrady/shairport-sync             "/start.sh"              About a minute ago   Up About a minute                                                                                          shairport-sync_shairport-sync_1

docker logs 33aea0ae60bc shows nothing. And when I try to access the docker with a bash-shell it displays:

OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

I'm running it from Ubuntu 20.04 Server, all packages up to date.

mikebrady commented 3 years ago

My guess is that Shairport Sync is starting up and then quitting because something is wrong.

The docker image does not contain bash, but it does contain sh.

panomitrius commented 3 years ago

That was it, yes. Now it starts, and shows up among the airplay devices. Although when I connect to it I now get this error message: ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave. Is there any guide to set it up that I can use?

mikebrady commented 3 years ago

If you are starting the docker image as suggested, this message would seem to indicate that there is no default ALSA device available. On a standard Ubuntu systems there would be; I don't know about the server edition.

panomitrius commented 3 years ago

If you are starting the docker image as suggested, this message would seem to indicate that there is no default ALSA device available. On a standard Ubuntu systems there would be; I don't know about the server edition.

Alright..

mikebrady commented 3 years ago

Hi there. Just wondering, did you manage to solve this problem?

panomitrius commented 3 years ago

No, I didn't put any more effort to it..

mikebrady commented 3 years ago

Okay, thanks for the response.