I don't know the answer to your question about Docker and X11. But just in case it's useful, I'll point out that the easiest way to run graph-tool on Mac is probably to use conda or homebrew. Both of those options provide pre-compiled binaries, so installation should (hopefully) be fairly quick and painless.
If you knew that already and you prefer the Docker container for other reasons, then I'm sorry for this noise.
On 4/23/20, 11:46 PM, "graph-tool on behalf of peterhuson" <firstname.lastname@example.org on behalf of email@example.com> wrote:
I'm wondering how you were able to resolve the error from the X server: > Unable to init server: Could not connect: Connection refused
XQuartz is installed, and I know it works because I have been able to forward X applications to it previously using ssh -X. I'm on OSX 10.12 using XQuartz 2.7.11
I followed the instructions running:
xhost +local: docker run -ti -u user -w /home/user --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix tiagopeixoto/graph-tool ipython
Would you be able to share how you configured your xhost to accept connections from the docker container?
Thanks for your help. Peter
-- Sent from: https://urldefense.com/v3/__http://main-discussion-list-for-the-graph-tool-p... _______________________________________________ graph-tool mailing list firstname.lastname@example.org https://urldefense.com/v3/__https://lists.skewed.de/mailman/listinfo/graph-t...