Disable mounting of compat libs from container

This change passes the --no-cntlibs argument to the nvidia-container-cli
from the nvidia-container-runtime-hook to disable overwriting host
drivers with the compat libs from a container being started.

Note that this may be a breaking change for some applications.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2025-01-10 10:44:11 +01:00
parent c22f3bd56c
commit 1176430278
No known key found for this signature in database

View File

@ -114,6 +114,8 @@ func doPrestart() {
}
args = append(args, "configure")
args = append(args, "--no-cntlibs")
if ldconfigPath := cli.NormalizeLDConfigPath(); ldconfigPath != "" {
args = append(args, fmt.Sprintf("--ldconfig=%s", ldconfigPath))
}