How to share Mac screen to Linux docker container?
I want to run odesk time tracker (a Qt4 app) which captures your screen and keystrokes for freelance work logging. But I don’t trust it and want to sandbox it.
On Linux, there are ways to run GUI items on docker container and forward X11 to Linux host. Can I do this on mac? The app will run on Linux container and will be displayed on Mac with capturing screen/keystroke.
I think VNC method would display the linux host, not the mac. If linux connects mac, I have to install the software on mac. I don’t know if I can do X11 forwarding.
One Solution collect form web for “How to share Mac screen to Linux docker container?”
You need to have XQuartz installed on your Mac. You can get it here –
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.