Docker for mac ports

broken image
broken image

In a terminal on the host, run xhost +localhost.The volume mount is not (and cannot due to an ongoing issue - more details in the original link) be used. This is actually how your docker container will be communicating with XQuartz on the host. NB: After restarting XQuartz, you can run netstat -an | grep -F 6000 to find that XQuartz has opened port 6000. From the XQuartz preferences, in the security tab, make sure Allow connections from network clients is enabled.It also helped me understand why the volume mount doesn't do anything and what's really going on. this link contains the only correctly current version. It seems things have moved a bit underneath all this since 2017, so I created an updated version.įor anyone arriving. Thanks for this, it really helped me out!