wernight / docker-mopidy

Containerized Mopidy MPD (Music Player Daemon) along with Spotify, Google Music... plugins.
https://hub.docker.com/r/wernight/mopidy/
MIT License
160 stars 86 forks source link

Attempting to run container fails with docker not found #1

Closed ddelnano closed 6 years ago

ddelnano commented 8 years ago

I tried to run your sample command with my spotify and soundcloud credentials and I get an error in the entrypoint.sh file on line 9 saying docker not found. So I think it seems to be running the docker run command that I used to try and run the container.

So I am wondering why the entrypoint.sh file has exec "$@", I see previously it was the mopidy command.

wernight commented 8 years ago

What was the command you ran?

On Mon, Apr 4, 2016, 01:23 Dom Del Nano notifications@github.com wrote:

I tried to run your sample command with my spotify and soundcloud credentials and I get an error in the entrypoint.sh https://github.com/wernight/docker-mopidy/blob/master/entrypoint.sh#L9 file on line 9 saying docker not found.

So I am wondering why the entrypoint.sh file has exec "$@", I see previously it was the mopidy command.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/wernight/docker-mopidy/issues/1

ddelnano commented 8 years ago

I used

docker run -d \
      -e PULSE_SERVER=tcp:$(hostname -i):4713 \
      -e PULSE_COOKIE_DATA=$(pax11publish -d | grep --color=never -Po '(?<=^Cookie: ).*') \
      -v $PWD/media:/var/lib/mopidy/media:ro \
      -v $PWD/local:/var/lib/mopidy/local \
      -p 6600:6600 -p 6680:6680 \
      wernight/mopidy \
      -o spotify/username=USERNAME -o spotify/password=PASSWORD \
      -o gmusic/enabled=false \
      -o soundcloud/enabled=false
wernight commented 8 years ago

Sorry the example was wrong as it's missing mopidy after wernight/mopidy (part of a recent change). I updated the README.

ddelnano commented 8 years ago

Ok cool. I'll try it later and if it works I will close the issue.