Graphics with the ROOT Docker image on OSX

I have followed the instructions here for MacOS to be able to use ROOT Graphics via Xquarts. My test is the canonical TBrowser s in a root prompt. It does not work. I see the error:

~/docker-4-bdsim$ docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$ip:0 rootproject/root-ubuntu16
  | Welcome to ROOT 6.12/07                   |
  |                                           (c) 1995-2017, The ROOT Team |
  | Built for linuxx8664gcc                                                |
  | From heads/v6-12-00-patches@v6-12-06-4-gc660fef, Feb 14 2018, 17:28:00 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'             |

root [0] TBrowser s
Error in <TGClient::TGClient>: can't open display "", switching to batch mode...
 In case you run from a remote ssh session, reconnect with ssh -Y
(TBrowser &) Name: Browser Title: ROOT Object Browser

Anyone had any success with this? My XQuartz version is 2.7.11, and I’m on OS 10.13.3 (High Sierra). Thank you.

Please try running xhost. If you see

$ xhost
access control enabled, only authorized clients can connect

Then you need to setup connections to your X11 server. Running xhost + will make it allow connections:

$ xhost +
access control disabled, clients can connect from any host

If it works after that, you may want to take a look into how to setup X11 to not need the xhost + command.

In combination with the recipe found on the hub.docker page, I can now successfully create a TBrowser. Thanks for your help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.