Skip to content

Commit d52a237

Browse files
authored
Merge pull request #339 from elezar/cherry-pick-1.14.5
Cherry-pick changes for v1.14.5
2 parents d167812 + 9d9260d commit d52a237

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# NVIDIA Container Toolkit Changelog
22

3+
## v1.14.5
4+
* Fix `nvidia-ctk runtime configure --cdi.enabled` for Docker. This was incorrectly setting `experimental = true` instead
5+
of setting `features.cdi = true`.
6+
37
## v1.14.4
48
* Include `nvidia/nvoptix.bin` in list of graphics mounts.
59
* Include `vulkan/icd.d/nvidia_layers.json` in list of graphics mounts.

cmd/nvidia-ctk/runtime/configure/configure.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ func (m command) build() *cli.Command {
149149
},
150150
&cli.BoolFlag{
151151
Name: "cdi.enabled",
152+
Aliases: []string{"cdi.enable"},
152153
Usage: "Enable CDI in the configured runtime",
153154
Destination: &config.cdi.enabled,
154155
},
@@ -310,7 +311,7 @@ func enableCDI(config *config, cfg engine.Interface) error {
310311
case "containerd":
311312
return cfg.Set("enable_cdi", true)
312313
case "docker":
313-
return cfg.Set("experimental", true)
314+
return cfg.Set("features", map[string]bool{"cdi": true})
314315
}
315316
return fmt.Errorf("enabling CDI in %s is not supported", config.runtime)
316317
}

versions.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
LIB_NAME := nvidia-container-toolkit
16-
LIB_VERSION := 1.14.4
16+
LIB_VERSION := 1.14.5
1717
LIB_TAG :=
1818

1919
# The package version is the combination of the library version and tag.

0 commit comments

Comments
 (0)