mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-02-03 19:45:36 +00:00
Merge commit from fork
Disable mounting of compat libs from container by default
This commit is contained in:
commit
7ae5c2901f
@ -114,6 +114,9 @@ func doPrestart() {
|
|||||||
}
|
}
|
||||||
args = append(args, "configure")
|
args = append(args, "configure")
|
||||||
|
|
||||||
|
if !hook.Features.AllowCUDACompatLibsFromContainer.IsEnabled() {
|
||||||
|
args = append(args, "--no-cntlibs")
|
||||||
|
}
|
||||||
if ldconfigPath := cli.NormalizeLDConfigPath(); ldconfigPath != "" {
|
if ldconfigPath := cli.NormalizeLDConfigPath(); ldconfigPath != "" {
|
||||||
args = append(args, fmt.Sprintf("--ldconfig=%s", ldconfigPath))
|
args = append(args, fmt.Sprintf("--ldconfig=%s", ldconfigPath))
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,9 @@ package config
|
|||||||
|
|
||||||
// features specifies a set of named features.
|
// features specifies a set of named features.
|
||||||
type features struct {
|
type features struct {
|
||||||
|
// AllowCUDACompatLibsFromContainer allows CUDA compat libs from a container
|
||||||
|
// to override certain driver library mounts from the host.
|
||||||
|
AllowCUDACompatLibsFromContainer *feature `toml:"allow-cuda-compat-libs-from-container,omitempty"`
|
||||||
// AllowLDConfigFromContainer allows non-host ldconfig paths to be used.
|
// AllowLDConfigFromContainer allows non-host ldconfig paths to be used.
|
||||||
// If this feature flag is not set to 'true' only host-rooted config paths
|
// If this feature flag is not set to 'true' only host-rooted config paths
|
||||||
// (i.e. paths starting with an '@' are considered valid)
|
// (i.e. paths starting with an '@' are considered valid)
|
||||||
|
2
third_party/libnvidia-container
vendored
2
third_party/libnvidia-container
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 16f37fcafcbdaf67525135104d60d98d36688ba9
|
Subproject commit f23e5e55ea27b3680aef363436d4bcf7659e0bfc
|
Loading…
Reference in New Issue
Block a user