Skip to content

Instantly share code, notes, and snippets.

@longtimeago
Created January 6, 2017 09:21
Show Gist options
  • Save longtimeago/9890534f978c35c8b223bf14674f928a to your computer and use it in GitHub Desktop.
Save longtimeago/9890534f978c35c8b223bf14674f928a to your computer and use it in GitHub Desktop.
Running GUI apps inside a Docker container
1) Install xnest on host PC
2) Run xnest on host PC
Xnest -ac -listen tcp :1
Should see an empty window on host PC
3) Set env variable inside a container
export DISPLAY <HOST_PC_IP> :1
4) Run GUI app inside a container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment