Skip to content

Commit e3d9ea5

Browse files
Respect docker api version when present
1 parent 0c51298 commit e3d9ea5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/deployment/src/main/java/io/quarkus/deployment/IsContainerRuntimeWorking.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ public Result get() {
6464
// this runs in threads that start with 'ducttape'
6565
StartupLogCompressor compressor = new StartupLogCompressor("Checking Docker Environment", Optional.empty(), null,
6666
(s) -> s.getName().startsWith("ducttape"));
67-
try (ResettableSystemProperties ignored = ResettableSystemProperties.of("api.version", "1.44")) {
67+
68+
String dockerApiVersion = System.getProperty("api.version");
69+
70+
try (ResettableSystemProperties ignored = dockerApiVersion != null ? ResettableSystemProperties.of("api.version", "1.44") : null) {
6871
Class<?> dockerClientFactoryClass = Thread.currentThread().getContextClassLoader()
6972
.loadClass("org.testcontainers.DockerClientFactory");
7073
Object dockerClientFactoryInstance = dockerClientFactoryClass.getMethod("instance").invoke(null);

0 commit comments

Comments
 (0)