mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Fix --cdi.enabled for Docker
Instead of relying only on Experimental mode, the docker daemon config requires that CDI is an opt-in feature. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -310,7 +310,7 @@ func enableCDI(config *config, cfg engine.Interface) error {
|
||||
case "containerd":
|
||||
cfg.Set("enable_cdi", true)
|
||||
case "docker":
|
||||
cfg.Set("experimental", true)
|
||||
cfg.Set("features", map[string]bool{"cdi": true})
|
||||
default:
|
||||
return fmt.Errorf("enabling CDI in %s is not supported", config.runtime)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user