How to share Mac screen to Linux docker container? How to share Mac screen to Linux docker container? docker docker

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 -

  1. Run X11 application (included with XQuartz)
  2. Open X11 Preferences and make sure "Allow connections..." is checkedX11 Preferences
  3. Restart X11 application
  4. Open a terminal
  5. 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.