Last active
July 28, 2017 00:04
-
-
Save slarson/66afd1351bf52b2c2b8d to your computer and use it in GitHub Desktop.
Running GUIs via Docker on Yosemite OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yosemite doesn't even have an "xhost" command, and brew does not have one