Run GUI applications and desktops in Docker
github.com
github.com
It probably has a lot of security and convenience functionality.
A minimal approach to run graphical applications inside a Docker container is this one-liner:
docker run -it --rm -e DISPLAY --net=host -v $XAUTHORITY:/root/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix debian:11-slim
Then inside the container, run:
apt update
apt install firefox-esr
firefox
Now Firefox runs inside the container and you can use it.A shell script with 9000 lines probably has a lot of security issues..
The principle of nesting Xephyr inside the host X server easily extends to nesting cage or sway or weston inside the host's wayland compositor.
It has wine and some old windows-only apps. I took a different approach, and used a VNC server. Not quite as fast, but doesn't require the host to have an Xserver. I even include a little web-based VNC client, so no install is needed.
In that case it's legacy applications not available on newer distros.