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