I've used it on Debian Bullseye (11) in a VM and it is fine. Needs extra config to do sound though (google for "xrdp sound"). Can't think of any reason it would not work in a container. Not all desktop environments will work well without OpenGL though.