diff --git a/core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java b/core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java index 7c10c563dfa3b..d47bfa597df92 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java @@ -81,6 +81,9 @@ public Result get() { Object dockerClientFactoryInstance = dockerClientFactoryClass.getMethod("instance").invoke(null); boolean isAvailable = (boolean) dockerClientFactoryClass.getMethod("isDockerAvailable") .invoke(dockerClientFactoryInstance); + if (!isAvailable) { + compressor.closeAndDumpCaptured(); + } return isAvailable ? Result.AVAILABLE : Result.UNAVAILABLE; } catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException | IllegalAccessException e) { if (!silent) { @@ -117,7 +120,7 @@ public Result get() { "Unable to connect to DOCKER_HOST URI %s, make sure docker is running on the specified host", dockerHost); } - } catch (URISyntaxException e) { + } catch (URISyntaxException | IllegalArgumentException e) { LOGGER.warnf("Unable to parse DOCKER_HOST URI %s, it will be ignored for working docker detection", dockerHost); }