Skip to content

Commit

Permalink
Fixup quarkusio#41085 Docker-build fails to detect podman: add back
Browse files Browse the repository at this point in the history
detectContainerRuntime() method for backwards compatibility

(cherry picked from commit 7c176b6)
  • Loading branch information
ppalaga authored and gsmet committed Jun 14, 2024
1 parent f669dd5 commit f3a1a51
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ private ContainerRuntimeUtil() {
* @return a fully resolved {@link ContainerRuntime} indicating if Docker or Podman is available and in rootless mode or not
* @throws IllegalStateException if no container runtime was found to build the image
*/
public static ContainerRuntime detectContainerRuntime() {
return detectContainerRuntime(true);
}

public static ContainerRuntime detectContainerRuntime(ContainerRuntime... orderToCheckRuntimes) {
return detectContainerRuntime(true, orderToCheckRuntimes);
}
Expand Down

0 comments on commit f3a1a51

Please sign in to comment.