fix(sandbox): pass docker.env into sandbox container

This commit is contained in:
Steve (OpenClaw)
2026-02-13 02:19:18 +00:00
committed by George Pickett
parent 40aff672c1
commit 92567765e6

View File

@@ -155,6 +155,10 @@ export function buildSandboxCreateArgs(params: {
if (params.cfg.user) {
args.push("--user", params.cfg.user);
}
for (const [key, value] of Object.entries(params.cfg.env ?? {})) {
if (!key.trim()) continue;
args.push("--env", key + "=" + value);
}
for (const cap of params.cfg.capDrop) {
args.push("--cap-drop", cap);
}