From 228b23be90dfb6b217d9fe62c5b12f9682f67034 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Thu, 27 Feb 2025 12:44:59 -0800 Subject: [PATCH] Fix #1182 by adding the missing ldconfig config pointing to /lib64 in plugin container image Signed-off-by: Fang-Pen Lin --- deployments/container/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deployments/container/Dockerfile b/deployments/container/Dockerfile index 817e2ac38..893a5def9 100644 --- a/deployments/container/Dockerfile +++ b/deployments/container/Dockerfile @@ -83,6 +83,11 @@ LABEL release="N/A" LABEL summary="NVIDIA device plugin for Kubernetes" LABEL description="See summary" +# We need this ldconfig config file otherwise when the `nvidia-ctk hook update-ldcache` hook kicks in, +# it may override the glibc and other libraries shipped with this container with the ones +# come from mounted driver libraries +# ref: https://github.com/NVIDIA/k8s-device-plugin/issues/1182 +RUN echo "/lib64" > /etc/ld.so.conf.d/lib64.conf RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE COPY --from=build /artifacts/config-manager /usr/bin/config-manager