Last active
November 1, 2016 20:02
-
-
Save mallond/ec9c41a3fb206a29ae0cd4a7a4083e14 to your computer and use it in GitHub Desktop.
Mac osx X11 Docker Example
This file contains 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
#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