File tree 1 file changed +4
-2
lines changed
core/runtime/src/main/java/io/quarkus/runtime/util
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,17 @@ public static ContainerRuntime detectContainerRuntime(boolean required) {
77
77
dockerAvailable = dockerVersionOutput .contains ("Docker version" );
78
78
if (dockerAvailable ) {
79
79
// Check if "docker" is an alias to "podman"
80
- if (dockerVersionOutput .startsWith ("podman version" )) {
80
+ if (dockerVersionOutput .startsWith ("podman version" ) ||
81
+ dockerVersionOutput .startsWith ("podman.exe version" )) {
81
82
storeContainerRuntimeInSystemProperty (ContainerRuntime .PODMAN );
82
83
return ContainerRuntime .PODMAN ;
83
84
}
84
85
storeContainerRuntimeInSystemProperty (ContainerRuntime .DOCKER );
85
86
return ContainerRuntime .DOCKER ;
86
87
}
87
88
podmanVersionOutput = getVersionOutputFor (ContainerRuntime .PODMAN );
88
- podmanAvailable = podmanVersionOutput .startsWith ("podman version" );
89
+ podmanAvailable = podmanVersionOutput .startsWith ("podman version" ) ||
90
+ podmanVersionOutput .startsWith ("podman.exe version" );
89
91
if (podmanAvailable ) {
90
92
storeContainerRuntimeInSystemProperty (ContainerRuntime .PODMAN );
91
93
return ContainerRuntime .PODMAN ;
You can’t perform that action at this time.
0 commit comments