From bac6f4f34afc77a14ae9429d0796c81917959e06 Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Wed, 25 Oct 2023 10:09:18 +0900 Subject: [PATCH] update docker run command for 2.0.110 (#2193) --- xpu/2.0.110+xpu/tutorials/installations/linux.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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