From 7d222f22cb66f6aded213346c6e439359100182d Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 18 Jan 2020 16:42:56 +0800 Subject: [PATCH] :art: #3 --- session/processes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/processes.go b/session/processes.go index 6c94392..b8dc855 100644 --- a/session/processes.go +++ b/session/processes.go @@ -68,7 +68,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request, channel map[string]*util var cmd *exec.Cmd if conf.Docker { fileName := filepath.Base(filePath) - cmd = exec.Command("docker", "run", "--rm", "--cpus", "0.05", "--name", rid, "-v", filePath+":/"+fileName, conf.DockerImageGo, "/"+fileName) + cmd = exec.Command("docker", "run", "-t", "--rm", "--cpus", "0.05", "--name", rid, "-v", filePath+":/"+fileName, conf.DockerImageGo, "/"+fileName) } else { cmd = exec.Command(filePath) curDir := filepath.Dir(filePath)