mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
[no-relnote] Explicitly use blank config
Since this is running in a contianer the contents of the /etc/nvidia-container-runtime/config.toml file is equivalent to the default config. This change makes it explicit. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
20a97882d2
commit
15d6c5edef
@ -50,9 +50,7 @@ func (t *Installer) installToolkitConfig(c *cli.Context, opts *Options) error {
|
|||||||
nvidiaCTKPath := filepath.Join(t.toolkitRoot, "nvidia-ctk")
|
nvidiaCTKPath := filepath.Join(t.toolkitRoot, "nvidia-ctk")
|
||||||
nvidiaContainerRuntimeHookPath := filepath.Join(t.toolkitRoot, "nvidia-container-runtime-hook")
|
nvidiaContainerRuntimeHookPath := filepath.Join(t.toolkitRoot, "nvidia-container-runtime-hook")
|
||||||
|
|
||||||
cfg, err := config.New(
|
cfg, err := config.New()
|
||||||
config.WithConfigFile(nvidiaContainerToolkitConfigSource),
|
|
||||||
)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("could not open source config file: %v", err)
|
return fmt.Errorf("could not open source config file: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,8 +35,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
// DefaultNvidiaDriverRoot specifies the default NVIDIA driver run directory
|
// DefaultNvidiaDriverRoot specifies the default NVIDIA driver run directory
|
||||||
DefaultNvidiaDriverRoot = "/run/nvidia/driver"
|
DefaultNvidiaDriverRoot = "/run/nvidia/driver"
|
||||||
|
|
||||||
nvidiaContainerToolkitConfigSource = "/etc/nvidia-container-runtime/config.toml"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type cdiOptions struct {
|
type cdiOptions struct {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user