Repository: quarkusio/quarkus
Issue: IsDockerWorking does not use property quarkus.docker.executable-name

### Describe the bug

When using property `quarkus.docker.executable-name` to set a custom Docker executable, the strategy `DockerBinaryStrategy` of BooleanSupplier `io.quarkus.deployment.IsDockerWorking` does not use the property `quarkus.docker.executable-name` to override the executable name.

### Expected behavior

If `quarkus.docker.executable-name` is set also `io.quarkus.deployment.IsDockerWorking.DockerBinaryStrategy` should honor this custom setting.

### Actual behavior

Class `io.quarkus.deployment.IsDockerWorking.DockerBinaryStrategy` is always using Docker binary `docker`

### How to Reproduce?

1. Download example of https://code.quarkus.io/?e=container-image-docker
2. Create a shell/batch file that runs Docker/Podman (in my case Docker runs inside WSL2; to replace Docker Desktop) and passes all arguments
3. Set `quarkus.docker.executable-name` to that shell/batch file executable
4. Try to build

### Output of `uname -a` or `ver`

Microsoft Windows [Version 10.0.18363.1734]

### Output of `java -version`

OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)

### GraalVM version (if different from Java)

_No response_

### Quarkus version or git rev

2.2.2.Final

### Build tool (ie. output of `mvnw --version` or `gradlew --version`)

Gradle v7.2

### Additional information

_No response_

Changed files:
core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java

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 617a47426d1..2f241e9b8f5 100644
--- a/core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java
+++ b/core/deployment/src/main/java/io/quarkus/deployment/IsDockerWorking.java
@@ -16,6 +16,7 @@
 import java.util.function.Function;
 import java.util.function.Supplier;
 
+import org.eclipse.microprofile.config.ConfigProvider;
 import org.jboss.logging.Logger;
 
 import io.quarkus.deployment.console.StartupLogCompressor;
@@ -125,20 +126,23 @@ public Result get() {
     private static class DockerBinaryStrategy implements Strategy {
 
         private final boolean silent;
+        private final String binary;
 
         private DockerBinaryStrategy(boolean silent) {
             this.silent = silent;
+            this.binary = ConfigProvider.getConfig().getOptionalValue("quarkus.docker.executable-name", String.class)
+                    .orElse("docker");
         }
 
         @Override
         public Result get() {
             try {
-                if (!ExecUtil.execSilent("docker", "-v")) {
-                    LOGGER.warn("'docker -v' returned an error code. Make sure your Docker binary is correct");
+                if (!ExecUtil.execSilent(binary, "-v")) {
+                    LOGGER.warnf("'%s -v' returned an error code. Make sure your Docker binary is correct", binary);
                     return Result.UNKNOWN;
                 }
             } catch (Exception e) {
-                LOGGER.warnf("No Docker binary found or general error: %s", e);
+                LOGGER.warnf("No %s binary found or general error: %s", binary, e);
                 return Result.UNKNOWN;
             }