I have tried several examples and images for using Chrome in a container with x11 to the host for GUI. I never could get one to work so I finally started from scratch with FROM centos. On my work laptop, I was able to get Chrome working on the container and use vXsrv on my Windows 10 laptop to use Chrome in the container. I used jess/chrome as a sample and built my own with the hints there - even though I never could get her ubuntu image to work for me.
At home, I tried the very same set up as at work except no proxy at home. At home I cannot connect to the x server. I can test the x server with xcalc and xclock (included with vXsrv) and those both work. But I can’t connect from my container to the vXsrv server on my host.
On the container, I have tried:
or used the same address in the command line for chrome:
google-chrome-stable --no-sandbox --display=10.0.75.1:0.0
In either case, this is the error returned at home (but it works at work)
Gtk-WARNING **: cannot open display: 10.0.75.1:0.0
Any suggestions? I’m supposed to present this to our docker user group in a week! I’m desparate.
Thanks in advance.
Edit to add: I can ping 10.0.75.1 from the container so the container can see the host.