Created
May 22, 2018 13:06
-
-
Save gnthibault/c5391a0a8fbf73bc484e52db1d4da8a2 to your computer and use it in GitHub Desktop.
How to dockerize a gui application through ssh
This file contains hidden or 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
python3 python3-pip python3-pyqt5 libgl1-mesa-glx libegl1-mesa libxcomposite1 libxcursor1 libxi6 libxtst6 libfontconfig1 libxrandr2 libasound2 python-tk | |
SOCK=/tmp/.X11-unix; XAUTH=/tmp/.docker.xauth; xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge - | |
docker run -it -e DISPLAY -v $XSOCK:$XSOCK -v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH --net host ubuntu spyder3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment