From 7f28661cb4a78e60173f8f91b5520f10ff9f3ee5 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 16 May 2019 18:29:28 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=9D=9E=20Windows=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=BC=BA=E5=88=B6=E4=BD=BF=E7=94=A8=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/wide.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/wide.go b/conf/wide.go index 79f4299..a36326f 100644 --- a/conf/wide.go +++ b/conf/wide.go @@ -95,7 +95,11 @@ func Load(confPath, confUsers, confIP, confPort, confServer, confLogLevel, confS cmd := exec.Command("docker", "version") _, err := cmd.CombinedOutput() if nil != err { - logger.Warn("Not found 'docker' installed, running user's code will cause security problem") + if !util.OS.IsWindows() { + logger.Errorf("Not found 'docker' installed, running user's code will cause security problem") + + os.Exit(-1) + } } else { Docker = true }