Wait, Docker Sandboxes Aren't Containers? twitter.com · 7 points · 0 comments · ...
HN Best 200 @best
Wait, Docker Sandboxes Aren't Containers? twitter.com · 7 points · 0 comments · HN thread
TL;DR A Docker-related article, presented as a tutorial, explains what Docker Sandboxes are and how they differ from ordinary Docker containers. Each local sandbox runs in its own microVM with its own Linux kernel and its own Docker Engine, and the article frames them as a way to let AI agents work with less risk. The post was prompted by a viral X post in which many people appeared to confuse sandboxes with containers.
- Docker Sandboxes were introduced as an experimental preview in November 2025 and brought microVM isolation to macOS and Windows in January 2026.
- Linux containers share the host VM's kernel, while each local Docker Sandbox runs in its own microVM with a separate kernel.
- Each sandbox has its own Docker Engine, so an agent can build and run containers without touching the user's existing Docker contexts, such as a production context.
- Setup is done with the sbx CLI: sbx login, then sbx run with a coding agent such as codex or Claude; Docker says 10 coding agents are supported.
- By default sbx run mounts the current directory as a writable workspace; sbx create gives a mountless sandbox and --clone gives the agent its own Git copy.
- Removing a sandbox with sbx rm deletes everything inside it, while the shared project folder stays on the host. Docker also offers cloud sandboxes that keep running when the laptop is closed, with a $250 credit offer until 31 January 2027.
Discussion No comments have been posted yet, so there is no discussion to summarize. The story has 7 points and has not yet drawn any responses.