Skip to content

Commit 9c4e426

Browse files
committed
Fix wrong place to add the config file in Dockerfile
1 parent a57335a commit 9c4e426

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

deployments/container/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ COPY --from=minimal /tmp/package-list.minimal package-list.minimal
6060
COPY deployments/container/cleanup/* .
6161

6262
RUN ./cleanup.sh
63-
# We need this ldconfig config file otherwise when the `nvidia-ctk hook update-ldcache` hook kicks in,
64-
# it may override the glibc and other libraries shipped with this container with the ones
65-
# come from mounted driver libraries
66-
# ref: https://github.com/NVIDIA/k8s-device-plugin/issues/1182
67-
RUN echo "/lib64" > /etc/ld.so.conf.d/lib64.conf
6863

6964
WORKDIR /
7065

@@ -88,6 +83,11 @@ LABEL release="N/A"
8883
LABEL summary="NVIDIA device plugin for Kubernetes"
8984
LABEL description="See summary"
9085

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
9191
RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
9292

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

0 commit comments

Comments
 (0)