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
  • Loading branch information
ppalaga authored and holly-cummins committed Jul 31, 2024
1 parent 6ec5026 commit 689792b
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 689792b

Please sign in to comment.