From 159da73fcdc42eb3efd26795781edb9fcb06d327 Mon Sep 17 00:00:00 2001 From: KAYUII <577738@qq.com> Date: Sat, 18 Sep 2021 18:02:53 +0800 Subject: [PATCH] Update Dockerfile.lotus fix docker can't find gpus --- Dockerfile.lotus | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.lotus b/Dockerfile.lotus index 812ad9f61..48a68ef6f 100644 --- a/Dockerfile.lotus +++ b/Dockerfile.lotus @@ -53,8 +53,9 @@ COPY --from=builder /usr/lib/x86_64-linux-gnu/libnuma.so.1 /lib/ COPY --from=builder /usr/lib/x86_64-linux-gnu/libhwloc.so.5 /lib/ COPY --from=builder /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /lib/ -RUN useradd -r -u 532 -U fc - +RUN useradd -r -u 532 -U fc \ + && mkdir -p /etc/OpenCL/vendors \ + && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd ### FROM base AS lotus