https://docs.docker.com/ai/sandboxes/
Not sure how well their work maps to sbx, but there has been multiple releases with features and improvements since then
Even sandboxed agents usually have a lot of capabilities. Adding backdoors to code by installing breached packages, abusing some access tokens to cause harm, and much more.
Podman can transparently start microVMs instead of local containers via libkrun as well, which does support Linux: https://josecastillolema.github.io/podman-wasm-libkrun/
Docker can launch machines (linux vms) on Linux too, that is all they are doing here is launching a container instance separate Linux VM, vs the typical shared VM instance.
By default they don't do so on Linux because it has performance costs and consumes resources, but they fully support KVM[0].
I am not sure if it is a more optimized docker machine VM image or not, but it looks they are just recycling the old model with support for instance specific docker sockets.
I encourage people to try podman on windows/MacOS just because they will allow you to SSH into the machine `podman ssh` and let you pull back the covers on the black box.
But Docker/Podman/Rancher Desktop use the same methods.
This (MicroVMs) is also kind of what apple's container[1] tools do.
I just followed Docker’s docs [0] to get Docker Desktop installed on Ubuntu.
Maybe I’m missing some specific point you’re making about some lower level detail, but they support and have instructions for Docker Desktop on Linux in their own docs.

Docker ships with an undocumented API for spawning microVMs. We reverse-engineered it and built the open-source Sandbox Agent SDK to allow orchestrating coding agents inside of them.
Docker & containers are the standard for how we’ve been running backends. Recently, more workloads have been moving to sandboxes for untrusted code execution, which Docker is not suitable for.
With the launch of Docker Sandboxes, Docker quietly shipped an undocumented API for microVMs that can power sandboxes.
This looks promising to be a unified way of managing sandboxes on your own infrastructure using microVMs, just like Docker did for containers 10 years ago. (Today it only supports macOS/Windows. Requires nested virtualization.)
Docker Sandboxes (launch post) are Docker’s solution for running AI coding agents safely. Claude Code, Codex, and Gemini need to run arbitrary code, install packages, and modify files. MicroVMs let them run --dangerously-skip-permissions without being dangerous.
Docker shipped a simple CLI:
At first glance, this looks like a glorified docker run command, but under the hood Docker is using a completely different technology: microVMs.
Containers are what most developers know and love when they run docker run. They provide basic file system, network, and process isolation between the host machine.
However, it’s a common misconception that containers are good enough for running untrusted code (AI agents, user-submitted scripts, multi-tenant plugins).
By design, containers share the host’s kernel in order to be fast and lightweight. However, that means that a compromised container can put the host at risk. The security implications of using containers is a longer topic, but most of the industry agrees that containers are a bad practice for untrusted code execution.
In order to achieve better security, products like AWS Lambda, Fly.io, and most sandbox providers use microVMs for lightweight virtual machines with separate kernels for better security. It’s lighter than a full virtual machine, but does not carry as much overhead. This is considered the gold standard of isolating user code. There are many other documents that better describe microVMs & Firecracker if you’d like to read more.
This is why Docker built Sandboxes on microVMs instead of containers while remaining compatible with Docker containers.
This is how the two compare:
| Docker Container | Docker Sandbox | |
|---|---|---|
| Security | Shared kernel (namespaces) | Separate kernel (microVM) |
| Untrusted code | Not safe | Safe |
| Network access | Direct HTTP | Via filtering proxy |
| Volumes | Direct mount | Bidirectional file sync |
| Platform | Linux, macOS, Windows | macOS, Windows only |
This opens up use cases that containers can’t safely handle:
docker sandbox run is strictly limited to Docker’s whitelisted agents: Claude, Codex, Gemini, Copilot, Kiro, and Cagent. It currently does not let you run your own Docker containers.
So naturally, I went down the rabbit hole to see if I could reverse engineer the underlying microVM API in order to run any code I’d like inside of sandboxes.
Docker’s sandboxd daemon manages all of the virtual machines and listens on ~/.docker/sandboxes/sandboxd.sock.
It provides three endpoints:
GET /vm: List all VMsPOST /vm: Create a VMDELETE /vm/{vm_name}: Destroy a VMWe’ll create a VM with:
And we get the response:
The VM name follows the pattern {agent_name}-vm. socketPath is your per-VM Docker daemon, which we’ll use in the next step.
Normally all containers share /var/run/docker.sock. Anyone with socket access can see and control every other container.
Sandboxes flip this. Each microVM gets its own Docker daemon at ~/.docker/sandboxes/vm/<name>/docker.sock for maximum isolation. Containers run like normal inside the microVM, but are completely isolated from the host and other VMs.
To target different daemons, we will need to override the Unix socket path using curl --unix-socket ... or docker --host unix://....
New VMs are completely isolated from the host, so we need to manually load images we’ve built into the VM.
We do this by building, archiving, and loading the image into the VM like this:
$VM_SOCK is the socketPath from the earlier step.
Now the fun part: we can finally run our image and work with it like any other Docker container.
microVMs route outbound traffic through a filtering proxy at host.docker.internal:3128. Your container needs these env vars:
The proxy does man-in-the-middle on HTTPS (hence NODE_TLS_REJECT_UNAUTHORIZED=0) for network policy enforcement. For production use, install the CA certificate from ca_cert_path in the VM response instead of disabling TLS verification.
Workspace syncs at the same absolute path, so volume mounts just work:
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).
The raw microVM API is powerful, but building a production agent orchestration system on top of it requires handling:
We built the Sandbox Agent SDK to handle all of this. It wraps the microVM API and provides a simple interface for spawning and interacting with AI coding agents:
See the full guide on deploying with Docker Sandboxes.
Docker’s microVM API opens up secure isolation for any workload, not just the handful of agents Docker officially supports. Whether you’re building an AI coding assistant, running untrusted user code, or isolating multi-tenant plugins, the /vm API gives you the primitives to do it safely.
The API is undocumented and subject to change, but it works today on Docker Desktop 4.58+. If you’re building something with it, we’d love to hear about it.