title: XDummy in Docker container
body: <p>I am trying to run a X11 server inside a docker container by using the XDummy driver. However, I have problems getting it to work. The intended purpose is to perform headless rendering. I can get it to work using Xvfb, but I need RANDR support, and eventually going to need GL support as well.</p>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM node:slim
  
  RUN mkdir nodeapp \
      &amp;&amp; apt-get update \
      &amp;&amp; apt-get install -y xorg \
      &amp;&amp; apt-get install -y xserver-xorg-video-dummy x11-apps
  
  COPY App /nodeapp/
  
  ENV DISPLAY :1
  
  RUN cd nodeapp/ \
      &amp;&amp; npm install \
      &amp;&amp; Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile /nodeapp/xdummy.log -config /nodeapp/xorg.conf start :1 &amp;
  
  ENTRYPOINT [ "node", "/nodeapp/index.js" ]
  </code></pre>
  
  <p>The xorg.conf file is the basic Xdummy <a href="http://xpra.org/xorg.conf" rel="noreferrer">xorg.conf</a></p>
  
  <p>However, the xserver does not boot, and the logfile does not provide anything useful, but I am certain I am doing something wrong when setting up Xorg in the Dockerfile, but I can't find any examples doing anything similar. </p>
  
  <p>What is the recommended procedure to make this work?</p>