Skip to content

Commit

Permalink
update docker run command for 2.0.110 (#2193)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingxu10 authored Oct 25, 2023
1 parent 4aa3fa1 commit bac6f4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xpu/2.0.110+xpu/tutorials/installations/linux.html
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,10 @@ <h3>Pull from Docker Hub<a class="headerlink" href="#pull-from-dockerhub" title=
<section id="run-docker-image">
<h3>Run a Docker Image<a class="headerlink" href="#run-docker-image" title="Permalink to this heading"></a></h3>
<div class="highlight-shell notranslate">
<div class="highlight"><pre>docker run --rm -it --privileged --device=/dev/dri --ipc=host &lt;image_name&gt;:&lt;tag&gt; bash
<div class="highlight"><pre>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 &lt;image_name&gt;:&lt;tag&gt; bash
</pre></div>
</div>
</section>
Expand Down

0 comments on commit bac6f4f

Please sign in to comment.