Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Created May 22, 2018 13:06
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 gnthibault/c5391a0a8fbf73bc484e52db1d4da8a2 to your computer and use it in GitHub Desktop.
Save gnthibault/c5391a0a8fbf73bc484e52db1d4da8a2 to your computer and use it in GitHub Desktop.
How to dockerize a gui application through ssh
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