Skip to content

Commit 280ebbf

Browse files
authored
Merge pull request moby#5726 from profnandaa/fix-cdi-config-on-windows
fix: cdi: add appdefaults.CDISpecDirs for windows
2 parents 1b15816 + db8d975 commit 280ebbf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/cdi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ name.
88
Since BuildKit 0.20.0, you can access devices using the CDI interface. This
99
allows you to use devices like GPUs in your builds.
1010

11+
> [!NOTE]
12+
> CDI support is yet to be tested on Windows.
13+
1114
## Usage
1215

1316
To use CDI with BuildKit, you need to create the [CDI configuration file](https://github.com/cncf-tags/container-device-interface/blob/main/SPEC.md#cdi-json-specification)

util/appdefaults/appdefaults_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818

1919
var (
2020
UserCNIConfigPath = DefaultCNIConfigPath
21-
CDISpecDirs []string
21+
CDISpecDirs = []string{filepath.Join(os.Getenv("ProgramData"), "buildkitd", "cdi")}
2222
)
2323

2424
func UserAddress() string {

0 commit comments

Comments
 (0)