Windows 10 Docker Host - Display GUI application from Linux Container

前端 未结 1 1081
逝去的感伤
逝去的感伤 2021-01-31 19:10

I\'m trying to use Windows 10 as my host and run Docker containers that contain gui based applications and display them using X11 forwarding or something similar. Pretty much a

相关标签:
1条回答
  • 2021-01-31 19:32

    You'll need to set DISPLAY to something other than localhost. The container has its own localhost interface, so your X11 client will attempt to connect to itself instead of to your host.

    Instead, you can pass in an IP address of your windows machine's network adapter. The container will be able to connect to that. You'll also need to have your X11 server configured to listen on that interface.

    0 讨论(0)
提交回复
热议问题