I created docker container with X server inside. I use it for some off-screen OpenGL rendering. This container should work on any system (with or without X server running) and it should use hardware GPU if it exists (so I cannot use xvfb).
When I use this container on server-like system without GUI, everything works perfectly. But when I run the container on Ubuntu 14.04 Desktop, the screen turns off each time I start X server in my container.
I start container with --priviliged so /dev folder is shared with container. I believe it involves some kind of conflict.
Is there a way to start X inside the container such as host X server is still working?
UPDATE:
I see the following in Xorg.0.log:
AIGLX: Suspending AIGLX clients for VT switch
(II) NOUVEAU(0): NVLeaveVT is called.
UPDATE:
Can I use xvfb instead of real Xorg server? Does it support actual hardware GPU rendering?