From 53f44b313cc5d85b871c7c8c364d986c8dbe9a1c Mon Sep 17 00:00:00 2001 From: Marat Gubaidullin Date: Sun, 8 Dec 2024 19:28:04 -0500 Subject: [PATCH] Fix inDocker() method --- .../java/org/apache/camel/karavan/service/ConfigService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karavan-app/src/main/java/org/apache/camel/karavan/service/ConfigService.java b/karavan-app/src/main/java/org/apache/camel/karavan/service/ConfigService.java index 0ee504e2049..6214f99393e 100644 --- a/karavan-app/src/main/java/org/apache/camel/karavan/service/ConfigService.java +++ b/karavan-app/src/main/java/org/apache/camel/karavan/service/ConfigService.java @@ -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; }