Create and manage Docker sandboxed VM environments for safe agent execution. Use when running untrusted code, exploring packages, or isolating agent workloads. Supports Claude, Codex, Copilot, Gemini, and Kiro agents with network proxy controls.
Run agents and commands in isolated VM environments using Docker Desktop's sandbox feature. Each sandbox gets its own lightweight VM with filesystem isolation, network proxy controls, and workspace mounting via virtiofs.
docker sandbox pluginCODEBLOCK0
This creates a VM-isolated sandbox with:
CODEBLOCK1
CODEBLOCK2
CODEBLOCK3
The sandbox includes a network proxy for controlling outbound access.
CODEBLOCK4
CODEBLOCK5
The workspace path on the host is mounted into the sandbox via virtiofs. The mount path inside the sandbox preserves the host path structure:
| Host OS | Host Path | Sandbox Path |
|---|---|---|
| Windows | INLINECODE2 | INLINECODE3 |
| macOS |
/Users/me/projects/my-app | /Users/me/projects/my-app |/home/me/projects/my-app | /home/me/projects/my-app |
The agent's home directory is /home/agent/ with a symlinked workspace/ directory.
Each sandbox VM includes:
/usr/local/share/npm-global/)/run/docker.sock - Docker-in-Docker capable)CODEBLOCK6
Important: Node.js fetch (undici) does NOT respect HTTP_PROXY env vars by default. For npm packages that use fetch, create a require hook:
CODEBLOCK7
Run with: INLINECODE15
CODEBLOCK8
CODEBLOCK9
CODEBLOCK10
fetch doesn't use the proxy. Use the proxy-fix.js require hook above, or use curl instead:
CODEBLOCK11
/path to C:/Program Files/Git/path. Prefix commands with:
CODEBLOCK12
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 docker-sandbox-lucas-1776420000 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 docker-sandbox-lucas-1776420000 技能
skillhub install docker-sandbox-lucas-1776420000
文件大小: 3.57 KB | 发布时间: 2026-4-17 20:20