4 ms·
Curious if anyone has come up with a way to run X11 itself in a container? (there are numerous articles on running GUI apps in containers that simply need a way
by kylek 12y ago
Curious if anyone has come up with a way to run X11 itself in a container? (there are numerous articles on running GUI apps in containers that simply need a way to talk to Xauthority or X socket, or using VNC or xpra). I'd imagine it would need to run privileged with access to device files, or something like that.
I've kicked around the idea of a "workstation" set of containers to run on top of CoreOS, but this is the biggest hump I've run into.
- jdub 12y agoI don't imagine anyone's bothered trying too seriously, because it wouldn't solve any interesting (read: security) problems. Relatively simple software distribution of X is a solved problem. ;-)
- compsciphd 12y agoeverything you need to know https://www.usenix.org/legacy/events/atc10/tech/full_papers/Potter.pdf https://www.usenix.org/legacy/events/atc10/tech/full_papers/...
- TheDong 12y agoMany people already have run X in a container with no trouble. They often just vnc it out. The hard part is not running X, but running X and having it display to your hardware. This is a massive distinction. You need to passthrough your graphics device so that X can write to its framebuffer and all that bizzazz, and that's the question you really should be asking. "How do I pass my graphics device / display device into a container".
- kylek 12y agoRight, this is what I actually meant
- zwischenzug 12y agoHere's an example of X11 in a container, with VNC'ing in. https://zwischenzugs.wordpress.com/2015/02/01/win-at-2048-with-docker-and-shutit-redux/ https://zwischenzugs.wordpress.com/2015/02/01/win-at-2048-wi... original link: https://zwischenzugs.wordpress.com/2014/05/09/docker-shutit-and-the-perfect-2048-game/ https://zwischenzugs.wordpress.com/2014/05/09/docker-shutit-...
- kordless 12y agoJess at Docker has some examples of setting this up and running various applications using VNC: https://blog.jessfraz.com/posts/docker-containers-on-the-desktop.html https://blog.jessfraz.com/posts/docker-containers-on-the-des.... Scroll down a bit toward the middle.
- Patrick_Devine 12y agoI'm starting to wrap some of my pyweek games in Docker because getting all of the pyglet/opengl/avbin dependencies to work correctly is a royal pain in the rear end. Check out: https://github.com/pdevine/yoyobrawlah https://github.com/pdevine/yoyobrawlah You can use the run_docker.sh script to get things going. The image is also available on Docker Hub, but you need to pass in things like the dri device to get it working correctly.