Docker Sandboxes Enable Secure Agent Evaluations with Harbor
Docker Sandboxes, integrated with Harbor, provide a secure and reproducible environment for running agent evaluations using MicroVMs and customizable network policies.
Docker Sandboxes and Agent Evaluation
Docker Sandboxes, integrated with Harbor, provide a secure and reproducible environment for running agent evaluations. These sandboxes operate as MicroVM environments, allowing agents such as Claude Code, Codex, and Cursor to be tested safely. By using Docker Sandboxes, users can define custom network policies, ensuring fair and consistent evaluation conditions. This capability supports both local and cloud-based execution, starting with free access on local systems and scaling to cloud resources as needed. The integration enables the evaluation framework to focus on task execution, result checking, and log collection, while Docker Sandboxes handle the secure execution environment. This approach ensures that evaluations are not only reliable but also isolated, reducing risks associated with running untrusted code.
Isolation and Network Policies in Docker Sandboxes
Docker Sandboxes were designed from the ground up for deeper isolation, enabling secure execution of tasks within contained environments. Configurable network policies in Docker Cloud Sandboxes allow a task to download dependencies during setup, then restrict internet access while the agent works, enhancing security and control. This approach ensures that agents operate within defined boundaries, reducing the risk of unintended interactions or data leaks. Additionally, Docker Cloud Sandboxes support running many tasks simultaneously without requiring manual provisioning, streamlining workflows and improving efficiency. These features make Docker Sandboxes a compelling choice for teams seeking to run safe, reproducible agent evaluations in isolated and controlled environments.
Setting Up and Running Evaluations with Harbor
Setting up and running evaluations with Harbor and Docker Sandboxes involves a few straightforward steps. First, install the Harbor CLI with the uv tool install "harbor[sbx]" command. Next, activate Cloud access for your Docker account and generate a personal access token (PAT). Set your Docker ID and PAT using environment variables: export SBX_DOCKER_USERNAME="your-docker-id" and export SBX_DOCKER_PAT="your-personal-access-token". Then, execute a task in Cloud Sandboxes with harbor run -t hello-world/hello-world -a oracle -e sbx. For local execution, install the Docker Sandboxes CLI, run sbx login, and add --ek target=local to the command. These steps ensure a secure and reproducible environment for agent evaluations.
Local and Cloud Integration with Harbor
Harbor and Docker Sandboxes now support local integration, enabling users to run safe, reproducible agent evaluations in public and no-network modes, as dictated by the machine’s existing sandbox policy. This integration is currently available in the nightly release of Docker Sandboxes, with plans to include it in the stable release on 10/23. To install the latest development version, users can run the command: uv tool install --upgrade "harbor[sbx]==0.24.1.dev202610150414". The feature is subject to the machine’s sandbox policy and does not guarantee universal compatibility across all environments. Users are advised to review their system’s configuration before deployment.
Docker Compose and Scalability in Cloud Sandboxes
Docker Compose is supported as part of the release, enabling Harbor to run multi-container tasks within a single Docker Cloud Sandbox. This allows services and sidecars to share the same MicroVM, enhancing efficiency and resource management. According to Eric Jia, Harbor can now run every eval task in Docker Sandboxes, which are MicroVM environments designed to safely execute agents like Claude Code, Codex, and Cursor. These sandboxes allow users to define custom network policies, ensuring fair and reproducible evaluations. Whether running locally or in the cloud, Harbor offers flexibility, starting with free access on Docker Sandboxes and scaling as needed. This capability supports scalable and secure evaluation workflows, particularly useful for AI agent testing and development.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.