diff --git a/kernel/util/path.go b/kernel/util/path.go index c110e4e74..05b72b07f 100644 --- a/kernel/util/path.go +++ b/kernel/util/path.go @@ -112,6 +112,9 @@ func GetLocalIPs() (ret []string) { } func isRunningInDockerContainer() bool { + if _, runInContainer := os.LookupEnv("RUN_IN_CONTAINER"); runInContainer { + return true + } if _, err := os.Stat("/.dockerenv"); err == nil { return true }