Hi!
There are a few options here.
-
Setup a container to use the X11 server of the host. Install programs in the container, and when you run them, they appear as separate windows on your host.
https://blog.simos.info/how-to-easily-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/ -
Similar to option 1, but add a separate X11 server (like Xnest or Xephyr). Such a setup would provide X11 isolation between the container and the host. It would be good for security.
-
Use X2go. You install the full desktop in a container and have it appear in a separate window on the host. You get the security benefits of option 2, but cannot do hardware acceleration for the GPU.
https://blog.simos.info/how-to-use-the-x2go-remote-desktop-with-lxd-containers/