NVIDIA / NVIDIA/nvidia-container-toolkit
Add ability to remove old configurations to not litter hanging symlinks
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 4.6k
- Forks
- 592
- Avg merge
- 1d 33m
- Merged PRs (30d)
- 61
Description
I use Incus to add a GPU to a container, but doing so creates a symlink over time for each driver version on each upgrade.
These broken symlinks make ldconfig spam every single file each time it is ran.
I raised this with Incus, but Incus claims there is no clean-up mechanism, so I would like for one to be added if possible.
(1/1) upgrading ollama-cuda [----------------------------------------------------------------------------------------------------------] 100%
ldconfig: File /usr/lib/libnvidia-ml.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-cfg.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libcuda.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libcudadebugger.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-opencl.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-gpucomp.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-ptxjitcompiler.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-allocator.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-pkcs11.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-pkcs11-openssl3.so.570.153.02 is empty, not checked.
ldconfig: File /usr/lib/libnvidia-nvvm.so.570.153.02 is empty, not checked.
[0] # ls -lah /usr/lib/libnvidia-ml.so.* # <ls> aliased to «lsd»
lrwxrwxrwx root root 25 B Sun Jun 8 12:53:41 2025 /usr/lib/libnvidia-ml.so.1 ⇒ libnvidia-ml.so.575.57.08
.rwxr-xr-x root root 0 B Tue Jun 3 16:01:30 2025 /usr/lib/libnvidia-ml.so.570.153.02
.rwxr-xr-x nobody nobody 2.2 MB Sun Jun 1 15:22:58 2025 /usr/lib/libnvidia-ml.so.575.57.08
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how Incus GPU configuration creates versioned library symlinks and how the NVIDIA container toolkit could identify obsolete entries. Review the reported ldconfig output and the referenced Incus discussion; done means old configuration artifacts are cleaned up without leaving broken or empty library entries.
Written by the indexing model from the issue text.
Assessment
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100