- Docker
- socat
- XQuartz
brew cask install docker xquartz
brew install socat
docker build -t x-firefox .
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-
xhost + "$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')"
Run the following command on xterm (provided by XQuartz):
docker run \
--rm \
-e DISPLAY="$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')":0 \
-v $HOME/Downloads:/root/Downloads \
x-firefox