title: Docker run desktop environment
body: <p>The question is most clear,<br>
  How to start complete desktop environment (KDE, XFCE, Gnome doesn't matter) in the Docker <strong>remote</strong> container.</p>
  
  <p>I were digging over the internet and <a href="https://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker-container">there</a> <a href="https://stackoverflow.com/questions/25281992/alternatives-to-ssh-x11-forwarding-for-docker-containers/25334301#25334301">are</a> <a href="https://stackoverflow.com/questions/37444835/docker-with-gui-application">lots</a> of questions about the related topic, but not the same, they all about how to run GUI <strong>application</strong> not the full desktop. </p>
  
  <p>What I found out:</p>
  
  <ul>
  <li>Necessary run Xvfb</li>
  <li>Somehow run e.g. Xfce in that FrameBuffer</li>
  <li>Allow x11vnc to share that running X environment</li>
  </ul>
  
  <p>But I'm stuck here actually, always getting whatever errors:</p>
  
  <pre><code>... (EE) Invalid screen configuration 1024x768 for -screen 0
  ... Cannot open /dev/tty0 (No such file or directory)
  </code></pre>
  
  <p>Could you give some Dockerfile lines in order reach the goal?</p>