dockerpi
dockerpi copied to clipboard
Running GUI
Is there a way to use GUI?
You'd probably need to forward X11 to your host.
try in this way :
#!/bin/bash
XSOCK=/tmp/.X11-unix XAUTH=/tmp/.docker.xauth touch $XAUTH xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run
--gpus all
--rm -it
-v $XSOCK:$XSOCK:rw
-v $XAUTH:$XAUTH:rw
-e DISPLAY=$DISPLAY
-e XAUTHORITY=$XAUTH
-t lukechilds/dockerpi