diff --git a/CHANGELOG.md b/CHANGELOG.md index dc598697..7f03f2c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # NVIDIA Container Toolkit Changelog ## v1.14.5 +* Fix `nvidia-ctk runtime configure --cdi.enabled` for Docker. This was incorrectly setting `experimental = true` instead + of setting `features.cdi = true`. ## v1.14.4 * Include `nvidia/nvoptix.bin` in list of graphics mounts. diff --git a/cmd/nvidia-ctk/runtime/configure/configure.go b/cmd/nvidia-ctk/runtime/configure/configure.go index 145fef0e..cbb62677 100644 --- a/cmd/nvidia-ctk/runtime/configure/configure.go +++ b/cmd/nvidia-ctk/runtime/configure/configure.go @@ -149,6 +149,7 @@ func (m command) build() *cli.Command { }, &cli.BoolFlag{ Name: "cdi.enabled", + Aliases: []string{"cdi.enable"}, Usage: "Enable CDI in the configured runtime", Destination: &config.cdi.enabled, }, @@ -310,7 +311,7 @@ func enableCDI(config *config, cfg engine.Interface) error { case "containerd": return cfg.Set("enable_cdi", true) case "docker": - return cfg.Set("experimental", true) + return cfg.Set("features", map[string]bool{"cdi": true}) } return fmt.Errorf("enabling CDI in %s is not supported", config.runtime) }