I'm fairly new to docker, and I have Linux containers that I wish to display applications using X11 forwarding onto my host Windows 10 machine without setting the environment value DISPLAY
to host.docker.internal:0
passed into the -e
flag. The following command works with showing the a PyQt5 gui from this github repo
docker run --rm -it -e DISPLAY=host.docker.internal:0 -u qtuser jozo/pyqt5 python3 /tmp/hello.py
The goal is be able to run a command like below:
docker run --rm -it -e DISPLAY=[SOME-IP-ADDRESS]:0 -u qtuser jozo/pyqt5 python3 /tmp/hello.py
I have tried following the suggestions from this SO post by setting my IP address to something other than localhost (even 127.0.0.1), but from what I have read from this answer, that I need to set DISPLAY
to something other than localhost. I have tried using an ip listed after running ipconfig
as suggested from this post, but none of the ip addresses show any relation to docker.
Any recommendations are welcome.