Last active
June 21, 2017 16:26
-
-
Save scudelletti/28752516ddbc4a35634527dd34dd64b8 to your computer and use it in GitHub Desktop.
Run GUI Linux Apps through Docker with xQuartz on MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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