Docker Sandboxes – Disposable, isolated sandboxes for AI agents
摘要
Docker 推出面向 AI 编码代理的一次性隔离沙箱产品 Docker Sandboxes,基于 microVM 隔离,支持 Claude Code、Gemini CLI、Copilot CLI、Codex、OpenCode、Kiro 等代理。沙箱内可安装包、修改配置、运行 Docker 容器,宿主不受影响,无需人工审批即可无人值守执行,默认支持 --dangerously-skip-permissions 模式。提供 macOS 和 Windows 安装命令,无需 Docker Desktop。团队级网络策略、文件系统规则和 MCP 治理需配合 Docker AI Governance 使用。页面还包含演示、文档、FAQ 及 NanoClaw 和 Warp 的推荐语。
荐读理由
装个 sbx 就能给 Claude Code 这类 agent 套上微虚拟机隔离,跑危险操作不碰宿主,可直接接进你的 agent 工作流
原文
Run AI agents safely in local sandboxes.
Disposable, isolated sandboxes for AI agents like Claude Code, Gemini CLI, Copilot CLI, Codex, OpenCode, and Kiro that need safe, unattended execution.
macOS
$ brew trust docker/tap && brew install docker/tap/sbx
Copy
Windows
winget install Docker.sbx
Copy
Get started free
Watch demo

See it in action
Sandboxes in action.
Watch an agent install packages, run Docker, modify configs, and execute unattended. Then dispose of the sandbox in one command.
sbx-demo
Click “Run Demo” to start
Get started
Get started in seconds.
macOS
$ brew trust docker/tap && brew install docker/tap/sbx
Copy
Windows
winget install Docker.sbx
Copy
Why sandboxes
Give agents the autonomy they need to get work done, safely.
Agents do their best work when they have freedom. Sandboxes let them run fast without running wild, so speed and safety stop being a tradeoff.
Filesystem
Network
Credentials
Need to enforce these controls across your whole team?
Capabilities
YOLO mode, safely.
Each agent runs inside a dedicated microVM with your dev environment and only your project workspace mounted in. Agents can install packages, modify configs, and spin up their own Docker containers. Your host stays untouched. No manual review, no permission prompts, no supervision required.
Customizable Safe Execution
Network and filesystem controls you define.
Enforceable org-wide with Docker AI Governance.
MicroVM Isolation
Hard security boundary from the host.
Fast to Spin Up, Easy to Tear Down
Disposable by default. Faster than VMs.
Agents Can Use Docker Too
Agents can spin up containers within Sandboxes.
Real Dev Environment
Install packages, run services, work unattended.
One Sandbox for All Your Coding Agents
Claude Code, Gemini CLI, Copilot CLI, Codex, Kiro, OpenCode.
Default –dangerously-skip-permissions Use permissive modes with confidence. In fact, that’s the default.
Works with leading coding agents

Every team is about to have their own team of AI agents doing real work for them. The question is whether it can happen safely. NanoClaw was built on the principle that you don’t trust agents with security, you build walls around them. Docker has been ahead of the curve on exactly this. Docker Sandboxes is what that looks like at the infrastructure level, making it possible for organizations to get the full value from agents without compromising on security.
Gavriel Cohen
Creator of NanoClaw, NanoClaw
Docker Sandboxes let agents have the autonomy to do long-running tasks without compromising safety. We’re excited to integrate Sandboxes into Warp so that developers can run agents freely with a consistent environment, regardless of whether agents are running locally or in the cloud.
Ben Navetta
Engineering Lead, Warp
Give agents freedom. Keep what matters safe.
macOS
$ brew trust docker/tap && brew install docker/tap/sbx
Copy
Windows
winget install Docker.sbx
Copy
FAQ
Common questions.
What is a sandbox for AI coding agents?
A sandbox is a microVM isolated environment that protects your filesystem and network from agents running inside it.
Which coding agents are supported?
Out of the box we support Claude Code, Gemini CLI, Copilot CLI, Codex, OpenCode, Kiro. You can also create your own
What does “YOLO mode” mean, and is it safe?
YOLO mode (--dangerously-skip-permissions) gives agents autonomy with no approval prompts. Essential for speed, but risky without guardrails. Sandboxes make it safe by isolating each agent inside a dedicated microVM.
How is a sandbox different from a VM?
Sandboxes run fully isolated in microVMs, giving more isolation without paying the full cost of running a VM. This lets them do things that need more permissions safely, like running additional Docker containers.
What safety controls can I configure?
To define these once and enforce them on every developer’s machine, seeDocker AI Governance.
Do I need Docker Desktop to use sandboxes?
No.
What if I need additional admin controls?
Installing Sandboxes covers core functionality. For centralized controls across a team such as network policies, filesystem rules, MCP governance:Docker AI Governance.
Need More Control Over Your Sandboxes?
With Docker Sandboxes, your developers get isolated environments to run agents freely and safely. When your team needs to go further with network access restrictions, filesystem policies, and centralized admin controls, we can help you configure the right setup.
Docker AI Governance adds network access policies, filesystem controls, and org-wide MCP governance: defined once, enforced everywhere.
Talk to us about:
Network access policies for sandbox environments
Filesystem access controls and restrictions
Admin-level configuration for your team
Talk to an expert
Thank you for your interest. The Docker Team will be in touch
这条对你有帮助吗?