From fe9206c894ec250e31d05347c1dc92bde22bc595 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 22 Jan 2023 16:17:12 -0600 Subject: [PATCH] fix(docs): add podman rocm command to admin guide --- docs/server-admin.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/server-admin.md b/docs/server-admin.md index 59380ce9..58c6c6ac 100644 --- a/docs/server-admin.md +++ b/docs/server-admin.md @@ -56,11 +56,18 @@ Requires ROCm driver on the host. Run with podman using: ```shell -> TODO +> podman run -it \ + --device=/dev/dri \ + --device=/dev/kfd \ + --group-add video \ + --security-opt seccomp=unconfined \ + -e ONNX_WEB_MODEL_PATH=/data/models \ + -e ONNX_WEB_OUTPUT_PATH=/data/outputs \ + -v /var/lib/onnx-web/models:/data/models:rw \ + -v /var/lib/onnx-web/outputs:/data/outputs:rw \ + -p 5000:5000 \ + docker.io/ssube/onnx-web-api:main-rocm-ubuntu ``` -Rootless podman does not appear to work: - -```none -root is not video error -``` +Rootless podman does not appear to work and will show a `root does not belong to group 'video'` error, which does +not make much sense on its own, but appears to refers to the user who launched the container.