How to share Mac screen to Linux docker container?
You need to have XQuartz installed on your Mac. You can get it here -
http://xquartz.macosforge.org/landing/
Once you installed it, follow this procedure -
- Run X11 application (included with XQuartz)
- Open X11 Preferences and make sure "Allow connections..." is checked
- Restart X11 application
- Open a terminal
- ssh to your docker with X11 forwarding:
ssh -X YOUR_DOCKER_IP
From now on, any GUI application that you run on your docker will show up on your Mac.