Skip to content

Commit 460f065

Browse files
committed
Add ld.so.cache file to the gpu-operator container image
The distroless image does not contain the ld.so.cache file. The update-ldcache createContainer hook will skip updating the container's ldcache if this file does not exist. This can lead to issues running the CUDA vectorAdd sample if the NVIDIA libraries are not present in the default dynamic linker search path(s). Signed-off-by: Christopher Desiniotis <[email protected]>
1 parent 441c352 commit 460f065

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ COPY --from=sample-builder /build/vectorAdd /usr/bin/vectorAdd
121121
# Once new sample images are published that contain the compat libs, we can update the below.
122122
COPY --from=builder /usr/local/cuda/compat /usr/local/cuda/compat
123123

124+
# The distroless image does not contain the ld.so.cache file. The update-ldcache
125+
# createContainer hook will skip updating the container's ldcache if this file
126+
# does not exist. This can lead to issues running the CUDA vectorAdd sample
127+
# if the NVIDIA libraries are not present in the default dynamic linker search
128+
# path(s).
129+
COPY --from=sample-builder /etc/ld.so.cache /etc/
130+
124131
COPY assets /opt/gpu-operator/
125132
COPY manifests /opt/gpu-operator/manifests
126133
COPY validator/manifests /opt/validator/manifests

0 commit comments

Comments
 (0)