diff --git a/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java b/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java index 100295e5c681c..ff6452d4199f2 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java @@ -258,11 +258,11 @@ public String getExecutableName() { } public boolean isDocker() { - return this == DOCKER || this == DOCKER_ROOTLESS; + return this.executableName.equals("docker"); } public boolean isPodman() { - return this.executableName.equals("docker"); + return this == PODMAN || this == PODMAN_ROOTLESS; } public boolean isInWindowsWSL() {