mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-29 07:21:46 +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:
parent
b3519fadc4
commit
ab598f004d
@ -10,6 +10,7 @@
|
|||||||
* Fix bug in determining default nvidia-container-runtime.user config value on SUSE-based systems.
|
* Fix bug in determining default nvidia-container-runtime.user config value on SUSE-based systems.
|
||||||
* Add `crun` to the list of configured low-level runtimes.
|
* Add `crun` to the list of configured low-level runtimes.
|
||||||
* Added support for `--ldconfig-path` to `nvidia-ctk cdi generate` command.
|
* Added support for `--ldconfig-path` to `nvidia-ctk cdi generate` command.
|
||||||
|
* Fix `nvidia-ctk runtime configure --cdi.enabled` for Docker.
|
||||||
|
|
||||||
* [toolkit-container] Bump CUDA base image version to 12.3.1.
|
* [toolkit-container] Bump CUDA base image version to 12.3.1.
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ func enableCDI(config *config, cfg engine.Interface) error {
|
|||||||
case "containerd":
|
case "containerd":
|
||||||
cfg.Set("enable_cdi", true)
|
cfg.Set("enable_cdi", true)
|
||||||
case "docker":
|
case "docker":
|
||||||
cfg.Set("experimental", true)
|
cfg.Set("features", map[string]bool{"cdi": true})
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("enabling CDI in %s is not supported", config.runtime)
|
return fmt.Errorf("enabling CDI in %s is not supported", config.runtime)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user