This commit is contained in:
Liang Ding 2019-12-14 16:32:28 +08:00
parent c3b7c26119
commit 215820f02b
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
1 changed files with 1 additions and 5 deletions

View File

@ -90,11 +90,7 @@ func Load(confPath, confData, confServer, confLogLevel string, confSiteStatCode
cmd := exec.Command("docker", "version")
_, err := cmd.CombinedOutput()
if nil != err {
if !gulu.OS.IsWindows() {
logger.Errorf("Not found 'docker' installed, running user's code will cause security problem")
os.Exit(-1)
}
logger.Warnf("Not found 'docker' installed, running user's code will cause security problem")
} else {
Docker = true
}