dockerpi icon indicating copy to clipboard operation
dockerpi copied to clipboard

Running GUI

Open Chaosdave34 opened this issue 3 years ago • 2 comments

Is there a way to use GUI?

Chaosdave34 avatar Mar 16 '21 10:03 Chaosdave34

You'd probably need to forward X11 to your host.

shayneoneill avatar Mar 19 '21 09:03 shayneoneill

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

Marietto2008 avatar May 24 '21 09:05 Marietto2008