@@ -173,19 +173,87 @@ docker run -p 4000:80 myapp
173173- CI/CD pipelines
174174- Multi-service applications
175175
176+ ## Docker Sandbox (docker sandbox + docker agent)
177+
178+ * Added 2026-05-06 for future reference.*
179+
180+ Docker Desktop v0.12+ ships two AI-agent-oriented commands:
181+
182+ ### docker sandbox
183+ Creates VM-based isolated sandbox environments for AI agents. Built-in agent templates:
184+
185+ | Subcommand | Template |
186+ | ---| ---|
187+ | ` opencode ` | Pre-configured for our fleet CLI tool |
188+ | ` claude ` | Claude Code |
189+ | ` codex ` | Terminal AI coding agent |
190+ | ` copilot ` | GitHub Copilot |
191+ | ` gemini ` | Google Gemini CLI |
192+ | ` cagent ` | Docker's agent runner (v1.44.0) |
193+ | ` kiro ` | Terminal agent |
194+ | ` shell ` | Plain shell |
195+
196+ ``` bash
197+ # Create a sandbox for opencode
198+ docker sandbox create opencode --name my-sandbox
199+
200+ # List running sandboxes
201+ docker sandbox ls
202+
203+ # Exec into a sandbox
204+ docker sandbox exec my-sandbox -- bash
205+
206+ # Snapshot and restore
207+ docker sandbox save my-sandbox --template my-template
208+ docker sandbox create opencode --template my-template
209+
210+ # Clean up
211+ docker sandbox rm my-sandbox
212+ ```
213+
214+ ### docker agent (cagent)
215+ Docker's AI Agent Runner (internal name: ` cagent ` , v1.44.0). Runs agents from YAML configs:
216+
217+ ``` bash
218+ # Create a new agent config
219+ docker agent new my-agent --model gemini-2.0-flash
220+
221+ # Run an agent
222+ docker agent run my-agent
223+
224+ # Run from a YAML file
225+ docker agent run ./agent.yaml
226+
227+ # Expose as MCP server
228+ docker agent serve my-agent
229+ ```
230+
231+ ### vs. virtualization-mcp sandbox_management
232+ | Aspect | Docker Sandbox | virtualization-mcp sandbox_management |
233+ | ---| ---| ---|
234+ | Isolation | VM-level (full OS) | Container-level (Docker) |
235+ | Agent support | 8 built-in templates (opencode, claude, etc.) | Custom Python/JS/bash images |
236+ | Integration | Standalone CLI | MCP tool, fleet-integrated |
237+ | Snapshot | ` docker sandbox save ` | ` session_destroy ` + recreate |
238+ | Networking | Managed via ` docker sandbox network ` | ` --network ` flag |
239+
240+ ** Note** : Docker Sandbox overlaps with our existing ` sandbox_management ` tool but adds VM-level isolation and multi-agent templates. Worth watching for fleet-specific features; not a replacement for our MCP-integrated approach.
241+
176242## Comparison Table
177243
178- | Feature | venv | Conda (cenv) | Docker |
179- | ------------------------| -------------------| -------------------| -------------------|
180- | Isolation Level | Python packages | Python + system | OS-level |
181- | Package Management | pip | conda | apt/yum/apk/etc. |
182- | Dependencies | Python only | Multi-language | System-wide |
183- | Performance | Very fast | Fast | Slight overhead |
184- | Size | Small | Medium | Larger |
185- | Startup Time | Instant | Fast | Slower |
186- | Cross-platform | Yes | Yes | Yes (with Docker) |
187- | System Requirements | Python only | Conda installed | Docker installed |
188- | Use Case | Python projects | Data science | Deployment |
244+ | Feature | venv | Conda (cenv) | Docker Containers | Docker Sandbox* |
245+ | ------------------------| -------------------| -------------------| -------------------| -------------------|
246+ | Isolation Level | Python packages | Python + system | Container-level | VM-level (full OS) |
247+ | Package Management | pip | conda | apt/yum/apk/etc. | Template images |
248+ | Dependencies | Python only | Multi-language | System-wide | Full OS stack |
249+ | Performance | Very fast | Fast | Slight overhead | VM overhead |
250+ | Size | Small | Medium | Larger | Largest |
251+ | Startup Time | Instant | Fast | Slower | Slowest |
252+ | Cross-platform | Yes | Yes | Yes (with Docker) | Yes (Docker Desktop)|
253+ | System Requirements | Python only | Conda installed | Docker installed | Docker Desktop v0.12+|
254+ | Use Case | Python projects | Data science | Deployment | AI agent sandboxing |
255+
256+ * \* Docker Sandbox (` docker sandbox ` + ` docker agent ` ) added in Docker Desktop v0.12. See section below.*
189257
190258## Integration with virtualization-mcp
191259
0 commit comments