There was a similar discussion of docker-release 8710 , but for MacOS:
A somewhat crude way to do this:
Run socatto open local socket xquartzon TCP port
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
(Note: for Windows you will need at least:
Transferring the display to the container (provided that the virtual host is available at 192.168.59.3):
docker run -e DISPLAY=192.168.59.3:0 jess/geary
(This is unsafe on public networks, add options bind, suand rangein socat to restrict access.)
source
share