Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 7 min read Announcement mediumAdept

From Dockerfile to Kit: the Docker Sandboxes Kit Specification

Docker Sandbox Kit Specification v3 defines a Kit as an ordinary OCI image whose manifest annotation (vnd.docker.sandbox.kit.descriptor) declares the authority an AI agent requests: network policies, proxy-managed credentials, volumes, hooks, skills. Docker Sandboxes run agents in microVMs with their own kernel, and a conforming runtime enforces these declarations as requests the host may grant or refuse. Workload and mixin Kits compose deterministically through a strict provides/requires dependency graph. Each descriptor normalizes to a grant set, so runtimes can block upgrades that widen authority, including removed deny rules. The spec is Apache 2.0 and ships with conformance suites for both artifacts and runtimes.

Related posts

  • Docker Sandboxes vs. Containers: Choosing the Right Isolation for AI Agents

    Docker mediumAdept

    Containers are isolated processes sharing the host kernel. Docker Sandboxes are microVMs with their own kernel, filesystem, network and private Docker Engine, designed for autonomous coding agents that accumulate state for hours and act on untrusted instructions. A container escape or a mounted Docker socket can expose the host. In a sandbox, an escape lands in a disposable VM, and network egress and credential injection are enforced by a host-side deny-by-default proxy. The tradeoffs are hypervisor requirements, more memory and disk, and some configuration through Kits and sbxenv.yaml. The recommendation: sandbox the agent and containerize the application it works on.

  • Empty sandboxes break developer experience

    Docker mediumAdept

    Docker Sandboxes kits turn empty, ephemeral agent sandboxes into usable dev environments by declaring in a spec.yaml what tools to install, files and env vars to add, which network domains are allowed, and which credentials to wire in. Credentials stay on the host: the agent sees a sentinel value like "proxy-managed" and the sandbox proxy injects the real Authorization header only for approved service domains. Small mixin kits (Java, gcloud, Tessl skills, YouTube transcripts) stack via repeated --kit flags. Distributing them as versioned OCI artifacts makes setup repeatable and shareable, so developers aren't tempted to skip isolation and run agents on the host.

  • The Trust Layer: Securing Agentic AI with Docker AI Governance

    Docker easyNovice

    Docker AI Governance secures AI agents by enforcing controls around their runtime rather than trusting model behavior, across three layers: Sandbox Policies, MCP Tool Governance, and Audit + Visibility. Sandbox policies constrain each agent's microVM environment, with network and filesystem rules enforced at the proxy and mount layers. MCP Gateway requests are denied by default unless a Cedar policy permits them, and policies can require confirmation for specific tool calls. Structured audit records of allow/deny decisions can feed SIEM workflows, and Docker Hardened Images, with signed SBOMs, VEX and SLSA Level 3 provenance, address the supply-chain side.

  • Why AI Agents Need Isolation

    Docker easyNovice

    AI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host. Docker Sandboxes (sbx) runs agents in microVMs instead of plain containers, because containers share the host kernel. Docker built its own VMM rather than using Firecracker so the same model works on macOS and Windows as well as Linux. Credentials stay on the host: the agent sees a sentinel placeholder, and a proxy swaps in the real auth header on outbound requests. Sandbox Kits package tools, network rules, credentials, files, startup commands and agent memory (e.g. AGENTS.md) into reusable specs, either as stackable Mixin Kits that extend an existing agent or as Agent Kits that define a full agent environment from scratch.

  • The Untrusted Autonomous Workload: How AI Coding Agents Reshape What Isolation Has to Do

    Docker mediumAdept

    AI coding agents are untrusted, autonomous workloads that containers were never designed to isolate, so Docker Sandboxes runs each agent in a microVM (custom VMM on Hypervisor.framework, WHP or KVM) with its own kernel and private Docker Engine. Outbound traffic goes through a TLS-intercepting host proxy that enforces domain policies and injects credentials from the host keychain, so secrets never enter the VM. Two limits remain: domain-level allowlists still permit exfiltration via sites like github.com, and the shared workspace lets an agent plant Git hooks, package.json scripts or CI configs that later run on the host. A real Astro build showed no measurable microVM overhead, though a jemalloc dependency failed on 16K-page Apple Silicon VMs. Agent output should be reviewed like an untrusted pull request, for example by diffing .git/hooks and using --branch worktrees.

The quest for software engineering knowledge.

Look:
Layout: