Skip to content

Commit f2b3e8d

Browse files
committed
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 <[email protected]>
1 parent 65ef5e3 commit f2b3e8d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • cmd/nvidia-container-runtime-hook

cmd/nvidia-container-runtime-hook/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ func doPrestart() {
114114
}
115115
args = append(args, "configure")
116116

117+
args = append(args, "--no-cntlibs")
118+
117119
if ldconfigPath := cli.NormalizeLDConfigPath(); ldconfigPath != "" {
118120
args = append(args, fmt.Sprintf("--ldconfig=%s", ldconfigPath))
119121
}

0 commit comments

Comments
 (0)