Docker Sandboxes
The most recommended of 17 agent sandboxes
Runs AI agents in isolated microVMs that see only your project directory. Main caveat: the required Docker login.
Runs AI agents in isolated microVMs that see only your project directory. Main caveat: the required Docker login.
89 people gave an opinion
- recommend it
- 50
- criticize it
- 39
- approval share
- 56%
Recommended in 9 of 13 months
- November 2025: not recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: not recommended
- May 2026: not recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 50 people recommend itNeeds 10 or more, met.
- 1.2 recommenders for every criticNeeds 2 to 1 or better, not met.
- Recommended in 9 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Runs agents in microVMs, isolated from host
“Docker sandboxes seem to be a good solution that also employs virtualization.”
Comment from 15 Aug 2026 in “Firefox is now the last major browser that still supports uBlock Origin” “sandboxes the agent in a micro vm running on the host and locks down access”
Comment from 21 Oct 2026 in “Ask HN: How do you keep your setup secure when using harnesses?” “switched to Docker sandboxes since they switched to mircoVMs too”
Comment from 27 Feb 2026 in “Let's Discuss Sandbox Isolation” - Comment from 20 Jan 2026 in “Running Claude Code dangerously (safely)”
- Comment from 27 Mar 2026 in “Anatomy of the .claude/ Folder”
Limits agent to project directory files
“Locks things way down so that the agent only has access to the files you give it”
Comment from 1 Jun 2026 on Hacker News “The default file access is just the directory you create the sandbox under.”
Comment from 11 Oct 2026 in “Mxc: Microsoft Execution Containers version 1.0.0” “You only mount the project dir so you can only loose your current changes”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” Easy to use daily, works out of box
“I’ve been using this pretty extensively for a few months on Mac and Linux and have been super happy with it.”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” “Concept is great - works quite well - I often have multiple short lived sandboxes running at once.”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” “CLI works on Fedora. Been using it daily for ~ a week.”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” - Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents”
What people warn about
Each mark is one comment
Requires a Docker login
“I am sad that they are asking for a login here though, which doesn't make any sense to me.”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” “Like others here I'm also saddened by the login requirement”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” “Though, they need to remove the login requirement.”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” - Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents”
- Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents”
- Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents”
- Comment from 4 Oct 2026 in “Docker has always used microVMs (well since 2016)”
Not available on Linux
“it's not available for Linux (so no AWS, no GCP, etc.)”
Comment from 16 Mar 2026 in “Docker Sandboxes and Docker Agent” “When I previously looked it did not (the reason being that they were already using VMs on Windows/macOS but not on Linux).”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” “I hope one day Linux will be able to support the exclusive MacOs/Windows technology of Docker Sandboxes.”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” Closed source and tied to Docker
“I'd say that they are on a good path. However in the end I'd expect it to be a standalone application and ecosystem, not tied to docker/moby”
Comment from 17 Feb 2026 in “Running NanoClaw in a Docker Shell Sandbox” “the disk space usage was growing significantly, I need to login multiple times for each sandbox, it's closed source”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” Fear of future paywalls and limits
“An enforced required login is a net negative value - it means rug pulls in the future.”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents” “Tomorrow they're gonna add limits on sandbox runs without a premium account too”
Comment from 10 Aug 2026 in “Docker Sandboxes – Disposable, isolated sandboxes for AI agents”
Other agent sandboxes people recommend
The four most recommended other agent sandboxes, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Docker SandboxesThis page | 50 | 39 | 56% | 9 | — | — |
| NVIDIA OpenShell | 36 | 8 | 82% | 9 | — | Approved |
| Claude Code sandbox | 16 | 18 | 47% | 6 | — | — |
| MXC (Microsoft Execution Containers) | 15 | 17 | 47% | 1 | — | — |
| microsandbox | 13 | 2 | 87% | 6 | — | Approved |
What people said
40 of the 99 comments that mention it, newest first. Each links to the original comment.
“Just use docker sandbox or iron proxy to replicate network control/cred swapping”
“sandboxes the agent in a micro vm running on the host and locks down access”
“The default file access is just the directory you create the sandbox under.”
“the "you need a docker login" makes is pretty much no-go for my use case”
“Docker sandboxes seem to be a good solution that also employs virtualization.”
“Concept is great - works quite well - I often have multiple short lived sandboxes running at once.”
“CLI works on Fedora. Been using it daily for ~ a week.”
“my team works on mcp integration with sbx. A solution I've been trying is this”
“But sbx is a bit annoying to use with OpenCode for instance”
“For my workload, it doesn't feel any slower than running it directly on the host.”
“I’ve been using this pretty extensively for a few months on Mac and Linux and have been super happy with it.”
“You only mount the project dir so you can only loose your current changes”
“Finally, a way to run --dangerously-skip-permissions without having a mild heart attack every time the agent decides to rm -rf a mystery directory.”
“An enforced required login is a net negative value - it means rug pulls in the future.”
“the disk space usage was growing significantly, I need to login multiple times for each sandbox, it's closed source”
“this one does that with less config, also with this agents can run docker”
“Like others here I'm also saddened by the login requirement”
“When I previously looked it did not (the reason being that they were already using VMs on Windows/macOS but not on Linux).”
“Docker is not a security boundary. It never has been meant to be”
“a batteries included alternative to firecracker with a couple of new ideas tossed into the mix”
“it works great out of the box with two key features”
“There is no reason to require a login for creating local mini sandboxes.”
“I hope one day Linux will be able to support the exclusive MacOs/Windows technology of Docker Sandboxes.”
“Tomorrow they're gonna add limits on sandbox runs without a premium account too”
“Though, they need to remove the login requirement.”
“I am sad that they are asking for a login here though, which doesn't make any sense to me.”
“gives you a meaningfully more secure environment to run it in”
“It's been a bit of a pain to figure out and maintain the set of tools I provision into the sandbox”
“Docker Sandbox is in the right direction. But there's a lot of parts that are still not ironed out yet.”
“Locks things way down so that the agent only has access to the files you give it”
“Better isolation than running it in a container.”
“it's not available for Linux (so no AWS, no GCP, etc.)”
“Docker sandboxing is kinda nice, but not enough to trust an LLM even with my messaging accounts.”
“switched to Docker sandboxes since they switched to mircoVMs too”
“I'd say that they are on a good path. However in the end I'd expect it to be a standalone application and ecosystem, not tied to docker/moby”
“I believe this is likely the only downside, but for good reasons!”
“We've seen a lot of developers immediately reach for Docker as a quick way to fence agents in.”
“It'll let you use Claude Code + Containers without Docker-in-Docker.”
“uses MicroVM isolation to solve this exact problem”
“Exactly for this problem, the docker sandbox command was added to the cli”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.