title: How to run docker image in ubuntu with vnc?
body: <p>In order to examine selenium tests running inside a docker image I am trying to set up a VNC to verify what is going on during the tests. </p>
  
  <p>I am following the suggestions made <a href="https://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker-container">here</a> and created a new docker image with the following additional lines in <code>Dockerfile</code>:</p>
  
  <pre><code>RUN     apt-get install -y x11vnc 
  RUN     mkdir ~/.vnc
  RUN     x11vnc -storepasswd 1234 ~/.vnc/passwd
  </code></pre>
  
  <p>Then I started the docker image with the following command: </p>
  
  <pre><code>docker run -p 5900 --rm -it --entrypoint /bin/bash selenium-tests
  </code></pre>
  
  <p>and started <code>krdc</code> as my VNC viewer. So now what? </p>
  
  <p>I do not see my docker image in <code>krdc</code>. Maybe I am missing something? Do I have to start the vnc code inside docker explicitly? Do I need to pass additional arguments to the <code>docker</code> command?</p>
  
  <ul>
  <li>docker: 1.13.1</li>
  <li>ubuntu: 16.4.03</li>
  <li>krdc: 4.14.16</li>
  </ul>