Skip to content

Commit

Permalink
Fix inDocker() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Dec 9, 2024
1 parent 31671b5 commit 53f44b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static boolean inKubernetes() {

public static boolean inDocker() {
if (inDocker == null) {
inDocker = !inKubernetes() && Files.exists(Paths.get(".dockerenv"));
inDocker = !inKubernetes() && Files.exists(Paths.get("/.dockerenv"));
}
return inDocker;
}
Expand Down

0 comments on commit 53f44b3

Please sign in to comment.