Skip to content

Commit 228b23b

Browse files
committed
Fix #1182 by adding the missing ldconfig config pointing to /lib64 in plugin container image
Signed-off-by: Fang-Pen Lin <[email protected]>
1 parent 29e135d commit 228b23b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deployments/container/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ LABEL release="N/A"
8383
LABEL summary="NVIDIA device plugin for Kubernetes"
8484
LABEL description="See summary"
8585

86+
# We need this ldconfig config file otherwise when the `nvidia-ctk hook update-ldcache` hook kicks in,
87+
# it may override the glibc and other libraries shipped with this container with the ones
88+
# come from mounted driver libraries
89+
# ref: https://github.com/NVIDIA/k8s-device-plugin/issues/1182
90+
RUN echo "/lib64" > /etc/ld.so.conf.d/lib64.conf
8691
RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
8792

8893
COPY --from=build /artifacts/config-manager /usr/bin/config-manager

0 commit comments

Comments
 (0)