mviereck / x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.
MIT License
5.62k stars 378 forks source link

docker-for-win: firewall settings / no X window appears #108

Closed eine closed 4 years ago

eine commented 5 years ago

Coming from https://github.com/mviereck/x11docker/issues/87#issuecomment-457307011

I tried the following:

However, x11docker does not work with any of them.

Last, I disabled the firewall everywhere (Domain network, Private network and Public network). Now x11docker works.

So, it is strange that this problem did not happen earlier. Although it might sound strange, I think that this might have something to do with changing from wireless to ethernet recently. I did change nothing more these last days.

Will have to investige further.

mviereck commented 5 years ago

Allow VcXsrv windows xserver in Private and Public networks. Start vcxsrv with xlaunch: Multiple windows, Display number 0, Start no client, Clipboard, Disable access control. winpty docker run -it -e DISPLAY=10.0.75.1:0.0 alpine_term xterm works.

I do not see why x11docker would not work where any sort of docker run -it -e DISPLAY works. For more similarity you could add --no-auth --clipboard --gpu and even --display=0. But I would not expect a difference due to this settings.

I think that this might have something to do with changing from wireless to ethernet recently. I did change nothing more these last days.

Maybe a regular Windows update that changed something, too?

eine commented 5 years ago

Well, I enabled the firewall again (Domain network, Private network and Public network), and it now works. vcxsrv must be enabled for private and public networks, but now x11docker behaves as well as docker run -it -e DISPLAY.

Maybe a regular Windows update that changed something, too?

Might be.

I'm closing this, because I don't know what did break or fix it.

mviereck commented 5 years ago

Thank you for reporting and investigation! I have added a note about this in README.md and a message in x11docker. I will keep this ticket open for those who might stumble over it, too.

eine commented 5 years ago

Today I found the same issue when using --xwin in Cygwin (#120). I had to set the firewall to allow xwin in both public and private networks.

x11docker_winfirewall

mviereck commented 4 years ago

Also in wiki, closing. https://github.com/mviereck/x11docker/wiki/x11docker-on-MS-Windows