AMAZINGINDEX.COM 日报快照
55.1
VOL. 2026.05
2026.05.22
← 返回 2026.05.22 日报
日报快照 · Daily Snapshot
NO. 012

Docker 暗藏微虚拟机 API 被破解

#ARTICLE HackerNews 2026.05.22
推荐指数 79.0 NO. 012 · 2026.05.22
发布2026/05/21Score53Comments7

Rivet 团队逆向工程了 Docker 内置但未公开的 MicroVM API,并推出开源 Sandbox Agent SDK,让开发者能直接编排运行在轻量虚拟机里的编码 Agent。对需要隔离执行不可信代码的 AI 应用(如代码生成、自动化运维)来说,这比传统容器方案提供了真正的硬件级安全边界。

Docker 暗藏微虚拟机 API 被破解

之前跑不可信代码的主流方案是 Firecracker 或 gVisor,但都需要额外基础设施,Docker 这个隐藏 API 意味着你现有的 Docker 环境就能直接起微虚拟机,部署成本大幅降低。

跟 Firecracker 比,Docker 的 MicroVM 启动速度和内存占用仍有差距,但胜在生态兼容——你的镜像、网络配置、CI 流程几乎不用改。如果你已经在用 Docker 跑 AI Agent,但苦于容器逃逸风险不敢开放用户代码执行,这个 SDK 是最低摩擦的升级路径。

短期建议:关注 sandboxagent.dev 的 benchmark 数据,重点测启动延迟和内存开销是否满足你的并发场景。

意见分歧 7 条评论

核心争论:MicroVM 隔离是否必要,还是容器安全已足够应对 AI Agent 风险

whimblepop

Kinda surprising that this doesn't support Linux. Podman can transparently start microVMs instead of local containers via libkrun as well, which does support Linux: https://josecastillolema.github.io/podman-wasm-libkrun/

ccrone

I work on Docker Sandboxes. We do support Linux with the newer standalone version (sbx), see here: https://docs.docker.com/ai/sandboxes/

nyrikki

> Docker Sandboxes require Docker Desktop 4.58+ on macOS or Windows. Linux is not supported since Docker Desktop uses platform-specific virtualization (Apple Virtualization.framework on macOS, Hyper-V on Windows). Docker can launch machines (linux vms) on Linux too, that is all they are doing here i

替代方案: PodmanlibkrunApple container tools
查看原文 →