# Running mopidy container fails

**URL:** <https://discourse.mopidy.com/t/running-mopidy-container-fails/4124>\
**Category:** Misc\
**Created:** [June 20, 2020, 7:48am UTC](https://discourse.mopidy.com/t/running-mopidy-container-fails/4124 "2020-06-20T07:48:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![godlessendeavor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/godlessendeavor/32/1626_2.png) [@godlessendeavor](https://discourse.mopidy.com/u/godlessendeavor)\
**Post date:** [June 20, 2020, 7:48am UTC](https://discourse.mopidy.com/t/running-mopidy-container-fails/4124/1 "2020-06-20T07:48:45Z")

</div>

Hi all,

I tried to install mopidy in Ubuntu and due to some broken dependencies I decided to search for a dockerized version of it. I found a nice version here [https://hub.docker.com/r/wernight/mopidy/](https://hub.docker.com/r/wernight/mopidy/).

Unfortunately I got some errors when trying to make it work with PulseAudio over the network. I see the following messages:

```
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
Pipeline is PREROLLING ...
WARNING: from element /GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0: Failed to connect: Connection refused
Additional debug info:
pulsesink.c(615): gst_pulseringbuffer_open_device (): /GstPulseSink:autoaudiosink0-actual-sink-pulse
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

```

Is this something where you could help me?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![jjok](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jjok/32/448_2.png) [@jjok](https://discourse.mopidy.com/u/jjok)\
**Post date:** [June 25, 2020, 5:16pm UTC](https://discourse.mopidy.com/t/running-mopidy-container-fails/4124/2 "2020-06-25T17:16:21Z")

</div>

What command are you using to run the container? I’m not sure about Pulse audio, but in general you have give the container access to whatever’s doing the playback on the host.

---

<div class="post-metadata">

**Author:** ![godlessendeavor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/godlessendeavor/32/1626_2.png) [@godlessendeavor](https://discourse.mopidy.com/u/godlessendeavor)\
**Post date:** [July 6, 2020, 5:23pm UTC](https://discourse.mopidy.com/t/running-mopidy-container-fails/4124/3 "2020-07-06T17:23:20Z")

</div>

This is my command: `docker run --rm -e "PULSE_SERVER=tcp:$(hostname -i):4713" -e "PULSE_COOKIE_DATA=$(pax11publish -d | grep --color=never -Po '(?<=^Cookie: ).*')" wernight/mopidy gst-launch-1.0 audiotestsrc ! audioresample ! autoaudiosink`  
I followed the recommendations to enable PulseAudio over network from the container’s creator but didn’t help.
