I am currently trying to run a instance of Weston within a Docker container.
My system is an Ubuntu 16.04, currently running native Weston with DRI backend (I don't want any X11 dependency). So for starters I would like to run another Weston instance (with Weston as backend) within a Docker container.
Afterwards (my real goal) I would like to run a plain Ubuntu machine without any desktop environment, only graphics drivers installed and then a Weston Docker instance that has access to DRI, although I am not even sure if (and how) this would be possible.
So far I wrote a Dockerfile that inherits from Ubuntu, installs Weston and then runs Weston. The error message I received was "please run Weston in a virtual terminal". I added a call to openvt:
RUN openvt -- launch-weston
This command is run as root. However, I always receive the error
Couldn't get a file descriptor referring to the console.
Now I am kind of stuck since the available resources on the internet on this topic are very rare :)
Has anybody an idea of how I could proceed? Any additional technical information about running a DRI/GBM/DRM/KMS graphics application within a Docker container would help me a lot.