Skip to content

Commit

Permalink
Fix NVIDIA#1182 by adding the missing ldconfig config pointing to /li…
Browse files Browse the repository at this point in the history
…b64 in plugin container image

Signed-off-by: Fang-Pen Lin <[email protected]>
  • Loading branch information
fangpenlin committed Feb 28, 2025
1 parent 29e135d commit 228b23b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deployments/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 228b23b

Please sign in to comment.