Skip to content

Commit 68974a2

Browse files
authored
Never support Docker build features on Windows (#100218) (#100226)
1 parent fcc7c37 commit 68974a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerSupportService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
package org.elasticsearch.gradle.internal.docker;
99

1010
import org.elasticsearch.gradle.Architecture;
11+
import org.elasticsearch.gradle.OS;
1112
import org.elasticsearch.gradle.Version;
1213
import org.elasticsearch.gradle.internal.info.BuildParams;
1314
import org.gradle.api.GradleException;
@@ -211,6 +212,11 @@ private boolean isExcludedOs() {
211212
return false;
212213
}
213214

215+
// Even if for some reason Docker exists on Windows agents, flag it as unsupported
216+
if (OS.current() == OS.WINDOWS) {
217+
return true;
218+
}
219+
214220
// Only some hosts in CI are configured with Docker. We attempt to work out the OS
215221
// and version, so that we know whether to expect to find Docker. We don't attempt
216222
// to probe for whether Docker is available, because that doesn't tell us whether

0 commit comments

Comments
 (0)