Skip to content

Commit

Permalink
Merge pull request #37364 from zakkak/2023-11-28-improve-37242
Browse files Browse the repository at this point in the history
Improve Docker Desktop detection
  • Loading branch information
zakkak authored Nov 29, 2023
2 parents 61edae4 + 5336193 commit e4f8d1e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ private static boolean getRootlessStateFor(ContainerRuntime containerRuntime) {
// We also treat Docker Desktop as "rootless" since the way it binds mounts does not
// transparently map the host user ID and GID
// see https://docs.docker.com/desktop/faqs/linuxfaqs/#how-do-i-enable-file-sharing
stringPredicate = line -> line.trim().equals("rootless") || line.contains("desktop-linux");
stringPredicate = line -> line.trim().equals("rootless") || line.contains("Docker Desktop")
|| line.contains("desktop-linux");
} else {
stringPredicate = line -> line.trim().equals("rootless: true");
}
Expand Down

0 comments on commit e4f8d1e

Please sign in to comment.