Building Reproducible AI Evaluation Workflows with Docker Sandboxes
The SBX AI Evaluation Kit is an open-source Docker Sandboxes Mixin Kit that makes AI evaluation runs reproducible by fixing the execution environment, not just the prompt, model and scorer. Evaluations are defined in YAML and run through an executor abstraction, so the same definition can execute locally or inside Docker Sandboxes by changing one config field. Each run produces a structured JSON artifact recording the executor, command, stdout/stderr, exit code and duration, plus a digest that links the artifact to its configuration. Suites group several evaluations and add an aggregated summary. The kit does not run models or score results; it only executes configured commands consistently and preserves evidence of what ran.
Related posts
- Running AI agents in GitHub Actions with Docker Sandboxes
Docker mediumAdeptGitHub Agentic Workflows (gh-aw 0.82.9) supports Docker Sandboxes (sbx) as an agent runtime, so a CI coding agent gets root, sudo and unrestricted shell inside a disposable microVM with its own kernel and private Docker daemon. Outside that VM it is limited by a network allowlist, a read-only token and a safe-output job that may only touch src/**. In the worked example, a Copilot agent on an ubuntu-24.04 runner runs a Java 21 Testcontainers/PostgreSQL suite, adds a regression test exposing a case-sensitive email uniqueness bug, applies a one-line normalization fix, and opens a draft PR. The run took about 11 minutes, and setup needs Docker credentials as secrets plus a KVM-capable host for self-hosted runners.
- Empty sandboxes break developer experience
Docker mediumAdeptDocker 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.
- Building AI Teams: How Docker Sandboxes and Docker Agent Transform Development
Docker mediumAdeptDocker Agent defines teams of specialized AI agents in YAML, where a root "product manager" agent delegates to designer, engineer, QA and fixer sub-agents, each with its own model, instructions and toolsets (filesystem, shell, think, todo, memory, MCP). Docker Sandboxes runs these agents inside dedicated microVMs (Docker Desktop 4.60+), mounting the project at the same absolute path, withholding host environment variables, and enforcing network allow/deny lists so agents can install packages and run commands without touching the host. A step-by-step walkthrough builds a Gradio bank app with a four-agent team. Limitations: everything is experimental, microVM sandboxes require macOS or Windows, and only one sandbox is allowed per workspace.
- From Dockerfile to Kit: the Docker Sandboxes Kit Specification
Docker mediumAdeptDocker 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.
- Run OpenClaw Securely in Docker Sandboxes
Docker mediumAdeptOpenClaw, an open-source AI coding agent, can run inside Docker Sandboxes (isolated microVMs) against local models served by Docker Model Runner, with no API keys or cloud costs. The sandbox restricts file access to the workspace, and its network proxy can deny arbitrary hosts and inject cloud API keys so the agent never sees them. Because Node.js ignores HTTP_PROXY, a ~20-line Node bridge on localhost:54321 forwards requests through the sandbox proxy (host.docker.internal:3128) to Model Runner on the host's localhost:12434. Full steps cover installing OpenClaw, writing the bridge, merging a Model Runner provider into OpenClaw's config, and saving the sandbox as a shareable image.