This commit is contained in:
lpf
2026-02-19 23:36:42 +08:00
parent eb721c2447
commit 67b9be2fc1
5 changed files with 26 additions and 4 deletions

View File

@@ -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,