For X11 forvarding (visualisation)
On linux - just set $DOCKER_DISPLAY to $DISPLAY (or unix$DISPLAY), not tested
On mac:
- install socat and xquartz:
brew install socat
brew cask install xquartz
- open xquartz
- launch socat
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
- (in separate session) set up $DOCKER_DISPLAY
export DOCKER_DISPLAY=$(ifconfig|grep -E inet.*broad|awk '{ print $2; }'):0
@ro31337 missed notification. Yeah, there was extra linebreak. Fixed