- One must deal with the security of Xorg for accepting connections. It should be better ways, but the best I found is
xhost +
, which disables the security.
docker run -ti --rm \
--net=host --device=/dev/dri -e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
<docker image>