title: (spotify:1): Gtk-WARNING **: cannot open display: unix
body: <p>I try to run the <a href="https://hub.docker.com/r/jess/spotify/~/dockerfile/" rel="nofollow">spotify docker container</a>. I have docker 1.11.2 installed on Ubuntu 14.04 VM.
  I'm on MAC and I'm using SSH to connect with my VM.
  It's working fine but when I try to run the docker container I get an error:</p>
  
  <pre><code>ubuntu@ubuntu-virtual-machine:~$ docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v /dev/snd:/dev/snd --privileged --name spotify jess/spotify
  
  (spotify:1): Gtk-WARNING **: cannot open display: unix
  </code></pre>
  
  <p>How can I fix this? I tried already some things I read on the internet like:
  edit <code>~/.xinitrc</code> and put the following in it:</p>
  
  <pre><code>#! /bin/bash
  xhost +localhost &amp;
  </code></pre>
  
  <p>Also tried to ssh to my ubuntu in the following way:
  <code>ssh ubuntu@IP -X</code> and </p>
  
  <pre><code>ssh ubuntu@IP -Y
  </code></pre>