Skip to content

Instantly share code, notes, and snippets.

@scudelletti
Last active June 21, 2017 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scudelletti/28752516ddbc4a35634527dd34dd64b8 to your computer and use it in GitHub Desktop.
Save scudelletti/28752516ddbc4a35634527dd34dd64b8 to your computer and use it in GitHub Desktop.
Run GUI Linux Apps through Docker with xQuartz on MacOS
# How to Use
# open -a XQuartz
# socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
# docker build . -t ds-xclock
# docker run -e DISPLAY=YOUR_LOCAL_IP_HERE:0 -it ds-xclock
#
# Useful Links:
# https://github.com/moby/moby/issues/8710
# http://kartoza.com/en/blog/how-to-run-a-linux-gui-application-on-osx-using-docker/
FROM alpine:latest
RUN apk add --no-cache xclock
ENTRYPOINT xclock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment