Harbor + Docker Sandboxes: Run Safe, Reproducible Agent Evals
Learn from Docker experts to simplify and advance your app development and management with Docker. Stay up to date on Docker events and new version
Published By From Docker Blog · 1 min read
AIRun Safe, Reproducible Agent Evals
To evaluate an agent, you give it a real task, let it work, and check the result. Along the way, the agent installs packages, edits files, and runs commands. That’s untrusted, AI-written code, and a benchmark runs it thousands of times.
And agents don’t always play fair. An agent can sometimes earn a passing score on an eval by gaming the check instead of doing the work, for example by tampering with tests or overwriting the file that records its score. This is called reward hacking, and it’s a growing concern across the eval community.
So running agent evals needs two things:
Harbor gives you the first. It’s an open-source eval framework.
This is an excerpt. The full article is published by Docker Blog.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Strong isolation by default. Docker Sandboxes were designed from the ground up for deeper isolation. This means you can run every task in a microVM, not a shared container. A microVM has its own kernel, so whatever the agent does stays inside its sandbox. It can’t break out to reach your machine, other tasks, or anything else outside its environment. Fair, reproducible evals. Configurable network policies let, for example, a task download what it
General
To evaluate an agent, you give it a real task, let it work, and check the result. Along the way, the agent installs packages, edits files, and runs commands. That’s untrusted, AI-written code, and a benchmark runs it thousands of times. And agents don’t always play fair. An agent can sometimes earn a passing score on an eval by gaming the check instead of doing the work, for example by tampering with tests or overwriting the file that records its
General
To evaluate an agent, you give it a real task, let it work, and check the result. Along the way, the agent installs packages, edits files, and runs commands. That’s untrusted, AI-written code, and a benchmark runs it thousands of times.
Definition / Understanding
Harbor can now run every eval task in Docker Sandboxes Docker Sandboxes are MicroVM environments to run agents like Claude Code, Codex, Cursor, and more safely With Sandboxes, define custom network policies for fair, reproducible evals Run your evals locally or in the cloud: starting for free on Docker Sandboxes on local surfaces and scaling…
General
Install Harbor with Docker Sandboxes. uv tool install "harbor[sbx]" Activate Cloud access for your Docker account and create a personal access token. Select Cloud Sandboxes under access permissions. Copy and save your token. It’s shown only once. To run locally, install the Docker Sandboxes CLI, run sbx login, and add --ek target=local to the command above. Today’s integration supports single-container tasks that run on CPUs. GPU and multi-contai