So before I wrote on dockerising X server and using vnc to connect to it.
Now here is that in git repository.
So I am not sure if it will work out of the box but it does work since I’ve tested it.
What you see in repo is copy paste of my setup.
If it does not work straight away it most probably needs one or few things but main chunk is there.
So what you want to do from here is to combine this with vnc client like novnc to access desktop running in docker container on whatever machine you want.
and use ssh tunnel in between!
ssh tunnel reminder:
connect to ssh port 22 on machine firstname.lastname@example.org
and from that machine connect to localhost port 110 and make that port available on local port 2110
`ssh -N -p 22 email@example.com -L 2110:localhost:110`