Skip to content

Instantly share code, notes, and snippets.

@slarson
Last active July 28, 2017 00:04
Show Gist options
  • Save slarson/66afd1351bf52b2c2b8d to your computer and use it in GitHub Desktop.
Save slarson/66afd1351bf52b2c2b8d to your computer and use it in GitHub Desktop.
Running GUIs via Docker on Yosemite OSX
As [here](http://kartoza.com/how-to-run-a-linux-gui-application-on-osx-using-docker/)
brew install socat
brew cask install xquartz
open -a XQuartz
xhost +
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
# in another window
# run ifconfig and inspect the output. Look for an "inet" address within a "vboxnet" section. this is your IP
export DISPLAY=[IP]:0
run the docker app that uses $DISPLAY normally
@CharlesJQuarra
Copy link

Yosemite doesn't even have an "xhost" command, and brew does not have one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment