![Download Download](/uploads/1/2/8/4/128440513/800042436.png)
A quick guide on how to run containers requiring a GUI with Docker for Mac and XQuartz.
This guide is assuming the following:
- OS X 10.11.5 (El Capitan)
- Docker for Mac 1.12 stable
- XQuartz 2.7.10 beta 2
- Jessie Frazelle’s Firefox Dockerfile
Prerequisites
- In seems in the latest version of XQuartz (2.7.9) this is turned off by default and there appears to be a move to deprecate this protocol. This seems to have been prompted by security concerns but I know nothing of the details.
- XQuartz 2.7.9, which is the current one provided by brew, has a bug which will prevent you from following this guide. So, head on over and download XQuartz 2.7.10 beta 2 from here. After installing XQuartz, log out and back in to OS X. Download Docker for Mac 1.12 stable from here, install and run. Run XQuartz in e.g.
XQuartz
You’ll need XQuartz, and normally you would probably install it via brew (but not this time):
XQuartz 2.7.9, which is the current one provided by brew, has a bug which will prevent you from following this guide. So, head on over and download XQuartz 2.7.10 beta 2 from here.
XQuartz for Mac. 49,784 downloads Updated: October 30, 2016 Freeware. Review Free Download. DOWNLOAD XQuartz 2.7.11. This enables Disqus, Inc. To process some of your data. Disqus privacy policy. XQuartz 2.7.11 add to watchlist send us an. The latest version of XQuartz is 2.7 on Mac Informer. It is a perfect match for the System Tools category. The app is developed by org.macosforge and its user rating is 4 out of 5.
After installing XQuartz, log out and back in to OS X.
Docker for Mac
Download Docker for Mac 1.12 stable from here, install and run.
Xquartz X11 For Mac
Go!
Run XQuartz in e.g. bash:
In the XQuartz preferences, go to the “Security” tab and make sure you’ve got “Allow connections from network clients” ticked:
Again, in e.g. bash, run
xhost
and allow connections from your local machine:You can now to run e.g. Jessie Frazelle’s Firefox container: