Skip to content

Instantly share code, notes, and snippets.

@ggarnier
Created September 29, 2015 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggarnier/9aea63dc5d96ea61c0ed to your computer and use it in GitHub Desktop.
Save ggarnier/9aea63dc5d96ea61c0ed to your computer and use it in GitHub Desktop.
Run graphical applications in Docker containers in OSX
# https://github.com/docker/docker/issues/8710#issuecomment-72669844
# display IP address isn't boot2docker ip, it's the address from vboxnet0 (run `ifconfig`)
brew install socat
brew cask install xquartz
open -a XQuartz
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
# in another window
docker run -e DISPLAY=192.168.59.3:0 jess/geary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment