Instructions
- Install xming
- but don't launch xming
- Run your docker image with these extra parameters: -e DISPLAY={ip of docker virtual adapter}:0.0
- eg. docker run -e DISPLAY=192.168.99.1:0.0 -it quay.io/travisci/travis-
node-js /bin/bash - Find your xming folder and open X0.hosts
- Add the ip of the docker machine on a new line and save
- docker should have displayed the ip when you opened your docker console
- alternatively you can simply try running the docker image and then locating the ip address at the bottom of the Xming log which can be found by right clicking on the Xming taskbar icon and choosing "View logs".
- Launch xming
- Run your GUI app from docker!
Disclaimer
I've only tested this with Firefox using a Windows 10 host.Sources
windows 7 - How to use x11 forwarding with PuTTYRunning Linux GUI Apps in Windows (using cygwin/X)