Add option to nvidia-ctk to enable CDI in docker

Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Christopher Desiniotis
2023-11-20 14:55:21 -08:00
committed by Evan Lezar
parent 16a4de1a2b
commit 64fb26b086
3 changed files with 24 additions and 8 deletions

View File

@@ -114,9 +114,10 @@ func (c *Config) RemoveRuntime(name string) error {
return nil
}
// Set is not supported for docker configs.
// Set sets the specified docker option
func (c *Config) Set(key string, value interface{}) error {
return fmt.Errorf("Set is not supported for crio configs")
(*c)[key] = value
return nil
}
// Save writes the config to the specified path