diff --git a/xpu/2.0.110+xpu/tutorials/installations/linux.html b/xpu/2.0.110+xpu/tutorials/installations/linux.html index bd5ebc023..3dbff4204 100644 --- a/xpu/2.0.110+xpu/tutorials/installations/linux.html +++ b/xpu/2.0.110+xpu/tutorials/installations/linux.html @@ -445,7 +445,10 @@

Pull from Docker Hub

Run a Docker Image

-
docker run --rm -it --privileged --device=/dev/dri --ipc=host <image_name>:<tag> bash
+
VIDEO=$(getent group video | sed -E 's,^video:[^:]*:([^:]*):.*$,\1,')
+RENDER=$(getent group render | sed -E 's,^render:[^:]*:([^:]*):.*$,\1,')
+test -z "$RENDER" || RENDER_GROUP="--group-add ${RENDER}"
+docker run --rm -it --privileged --group-add ${VIDEO} ${RENDER_GROUP} --device=/dev/dri --ipc=host <image_name>:<tag> bash