Merge pull request #339 from elezar/cherry-pick-1.14.5

Cherry-pick changes for v1.14.5
This commit is contained in:
Evan Lezar 2024-02-07 10:20:27 +01:00 committed by GitHub
commit d52a237c12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# 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.
* Include `vulkan/icd.d/nvidia_layers.json` in list of graphics mounts.

View File

@ -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)
}

View File

@ -13,7 +13,7 @@
# limitations under the License.
LIB_NAME := nvidia-container-toolkit
LIB_VERSION := 1.14.4
LIB_VERSION := 1.14.5
LIB_TAG :=
# The package version is the combination of the library version and tag.