Skip to content

Conversation

@elezar
Copy link
Member

@elezar elezar commented Sep 30, 2025

Even though a particular image (distroless, busybox, alpine) doesn't include ldconfig, a user may include tooling to read the ldcache in the container or applications may process the ldcache using dlopen.

This change always creates the /etc/ld.cache file in the container to ensure that this works as expected.

This effectively reverses the changes made in https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/merge_requests/369. Here the actual cause of failures in containers that don't use the ldcache was the missing /etc/ld.so.conf.d folder and not the ldcache itself.

Even though a particular image (distroless, busybox, alpine) doesn't
include ldconfig, a user may include tooling to read the ldcache in the
container or applications may process the ldconfig using dlopen.

This change always creates the /etc/ld.cache file in the container to
ensure that this works as expected.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar added this to the v1.18.0 milestone Sep 30, 2025
@elezar elezar requested a review from cdesiniotis September 30, 2025 11:26
Copy link
Contributor

@cdesiniotis cdesiniotis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Evan

@elezar elezar merged commit be415a8 into NVIDIA:main Oct 1, 2025
16 checks passed
@elezar elezar deleted the unconditional-ldcache branch October 1, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants