You want to run a GUI application, for instance Firefox, in your Docker container for Mac and have it forwarded to your Macbook.
If you just want to copy paste:
IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $IP
docker run --rm -it -e DISPLAY=${IP}:0 -v /tmp/.X11-unix:/tmp/.X11-unix selenium/standalone-firefox firefox
:)
This can be achieved via XQuartz on Mac.
6. Start Firefox inside your docker container:
That's it.