From 710b2d633c257d02b6f8fe8c08b756663168341e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 29 Aug 2022 00:07:42 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=80=9A=E8=BF=87=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=20`RUN=5FIN=5FCONTAINER`=20=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E5=9C=A8=E5=AE=B9=E5=99=A8=E5=86=85?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/5744?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/util/path.go | 3 +++ 1 file changed, 3 insertions(+) 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 }