xhost + `ipconfig getifaddr en1`
docker run -ti --rm -e DISPLAY=$(ipconfig getifaddr en1):0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/developer opendx
Consider to add these to your .bash_profile
alias dxdocker='open -a /Applications/Docker.app/Contents/MacOS/Docker'
alias dxx='open -a XQuartz; xhost + `ipconfig getifaddr en1`'
alias dx='docker run -ti --rm -e DISPLAY=$(ipconfig getifaddr en1):0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/developer opendx'
== MAC ==