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

Error parsing reference: ":4713" is not a valid repository/tag. #6

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi, I'm a docker newbie, I get this error message, when I try to run

$ 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 \
      mopidy \
      -o spotify/username=USERNAME -o spotify/password=PASSWORD \
      -o gmusic/username=USERNAME -o gmusic/password=PASSWORD \
      -o soundcloud/auth_token=TOKEN
wernight commented 7 years ago

What's the error? What OS?

geripgeri commented 7 years ago

@budkin It's because you have to add ' symbol (Currently it's parsed as key:value)

-e PULSE_SERVER='tcp:$(hostname -i):4713' \

@wernight I think you should update the Readme and also the Dockerhub Readme.

wernight commented 7 years ago

Thanks, I'm using ZSH and this only shows on Bash.

ghost commented 7 years ago

I was using zsh as well, I solved this issue by invoking docker with net --host and -e PULSE_SERVER=tcp:127.0.0.1:4713 options

wernight commented 7 years ago

I've updated the readme so it should be fixed now.