title: Docker GUI with Mac how to
body: <p>I am recently starting with docker and I am facing a problem in setting-up an existing docker-desktop image and showing is t on my screen.
  This will be the first step to then personalize the whole image:</p>
  
  <p>I followed instruction from several sites but the easiest one is the following:
  <a href="https://github.com/dockerfile/ubuntu-desktop" rel="nofollow">dockerfile/ubuntu-desktop</a></p>
  
  <ul>
  <li>No problem in downloading the image</li>
  <li><p>When I run it I obtain the following output:</p>
  
  <pre><code>$ docker run -it --rm -p 5901:5901 -e USER=root dockerfile/ubuntu-desktop     bash -c "vncserver :1 -geometry 1280x800 -depth 24 &amp;&amp; tail -F /root/.vnc/*.log"
  You will require a password to access your desktops.
  Password: 
  Verify:   
  Would you like to enter a view-only password (y/n)? n
  New 'X' desktop is 0792f104dfd0:1
  Creating default startup script /root/.vnc/xstartup
  Starting applications specified in /root/.vnc/xstartup
  Log file is /root/.vnc/0792f104dfd0:1.log
  03/02/15 14:10:08 Copyright (C) 2000-2007 TightVNC Group
  03/02/15 14:10:08 Copyright (C) 1999 AT&amp;T Laboratories Cambridge
  03/02/15 14:10:08 All Rights Reserved.
  03/02/15 14:10:08 See http://www.tightvnc.com/ for information on TightVNC
  03/02/15 14:10:08 Desktop name 'X' (0792f104dfd0:1)
  03/02/15 14:10:08 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
  03/02/15 14:10:08 Listening for VNC connections on TCP port 5901
  Font directory '/usr/share/fonts/X11/Type1/' not found - ignoring
  Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
  Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
  xrdb: No such file or directory
  xrdb: can't open file '/root/.Xresources'
  AUDIT: Tue Feb  3 14:10:09 2015: 17 Xtightvnc: client 6 rejected from local host
  </code></pre></li>
  </ul>
  
  <p>The container inspection output is the following:</p>
  
  <pre><code>    $ docker inspect -f '{{json .NetworkSettings }}' 0792f104dfd0 
      {"Bridge":"docker0","Gateway":"172.17.42.1",
      "IPAddress":"172.17.0.21","IPPrefixLen":16,
      "MacAddress":"02:42:ac:11:00:15",
      "PortMapping":null,
      "Ports":{"5901/tcp":[{"HostIp":"0.0.0.0","HostPort":"5901"}]}}
  </code></pre>
  
  <p>When I try to connect with VCN I get errors.</p>
  
  <p>Could you help me in finding what I should change to have a running, visible desktop on mac using Docker? </p>