This commit is contained in:
parent
c3b7c26119
commit
215820f02b
|
@ -90,11 +90,7 @@ func Load(confPath, confData, confServer, confLogLevel string, confSiteStatCode
|
||||||
cmd := exec.Command("docker", "version")
|
cmd := exec.Command("docker", "version")
|
||||||
_, err := cmd.CombinedOutput()
|
_, err := cmd.CombinedOutput()
|
||||||
if nil != err {
|
if nil != err {
|
||||||
if !gulu.OS.IsWindows() {
|
logger.Warnf("Not found 'docker' installed, running user's code will cause security problem")
|
||||||
logger.Errorf("Not found 'docker' installed, running user's code will cause security problem")
|
|
||||||
|
|
||||||
os.Exit(-1)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Docker = true
|
Docker = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue