Skip to content

Instantly share code, notes, and snippets.

@mallond
Last active November 1, 2016 20:02
Show Gist options
  • Save mallond/ec9c41a3fb206a29ae0cd4a7a4083e14 to your computer and use it in GitHub Desktop.
Save mallond/ec9c41a3fb206a29ae0cd4a7a4083e14 to your computer and use it in GitHub Desktop.
Mac osx X11 Docker Example
#firefox example
- Install XQuartz
open -a XQuartz
ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $ip
docker run -it -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix jess/firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment