🎨 非 Windows 环境强制使用 docker
This commit is contained in:
parent
efa278c773
commit
7f28661cb4
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue