Skip to content

Commit

Permalink
Merge pull request #37576 from zakkak/2023-12-07-fix-podman-rootless-…
Browse files Browse the repository at this point in the history
…builds

Fix ContainerRuntimeUtil.ContainerRuntime#isPodman check
  • Loading branch information
gsmet authored Dec 7, 2023
2 parents abe537f + dcb6e3f commit b12e61e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b12e61e

Please sign in to comment.