mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-14 17:07:29 +08:00
fix loop
This commit is contained in:
@@ -86,7 +86,9 @@ func (t *ExecTool) executeInSandbox(ctx context.Context, command, cwd string) (s
|
||||
absCwd, _ := filepath.Abs(cwd)
|
||||
dockerArgs := []string{
|
||||
"run", "--rm",
|
||||
"-v", fmt.Sprintf("%s:/app", absCwd),
|
||||
"--privileged",
|
||||
"--user", "0:0",
|
||||
"-v", fmt.Sprintf("%s:/app:rw", absCwd),
|
||||
"-w", "/app",
|
||||
t.sandboxImage,
|
||||
"sh", "-c", command,
|
||||
|
||||
Reference in New Issue
Block a user