open -a XQuartz
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 /work --name ubuntu_dx opendx
Consider to add these to your .bash_profile
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 --name ubuntu_dx opendx'
alias dxbashdx='docker exec run -it ti --rm -e DISPLAY=$(ipconfig getifaddr en1):0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/developer/work --name ubuntu_dx bashopendx'
== MAC ==