Skip to content

Docker Sandboxes

Docker Sandboxes provides isolated environments for coding AI agents, leveraging microVMs to offer hardware-level isolation for untrusted code execution.

Freemium · API

stork0:00 / 0:04
Ava, one of 89 voices. Press play.
A voiceover costs 5 cents a minute.
Type up to 20,000 characters, get an MP3. 89 voices, 38 languages. Three free a day, a minute each.
Make a voiceover

What is Docker Sandboxes?

Docker Sandboxes is an AI tool developed by Docker that enables developers and teams to run AI coding agents and other untrusted code in secure, isolated environments. It leverages microVMs to provide hardware-level isolation for untrusted code execution, ensuring that autonomous agents can perform tasks like installing packages, running services, and modifying files without compromising the host machine or sensitive data. This platform is designed to package applications and their dependencies into containers for consistent execution, integrating with systems that prioritize strong isolation.

Key Features of Docker Sandboxes

Docker Sandboxes offers a suite of features designed to provide robust security and control for running AI agents and untrusted code. These capabilities ensure strong isolation, policy enforcement, and secure operations within development workflows.

  • MicroVM-based hardware-level isolation for every agent session, providing a dedicated Linux kernel.
  • Secure execution for AI coding agents, including support for Claude Code, Codex CLI, and Gemini CLI.
  • Network isolation with configurable allow and deny lists, enforced at runtime.
  • Filesystem lockdown and policy enforcement to prevent unauthorized data access or exfiltration.
  • Secure credential handling, injecting credentials into outbound network requests from the host keychain without exposing values inside the sandbox.
  • Ability for agents to build and run Docker containers within the sandbox, isolated from the host's Docker daemon.
  • Identity-bound audit logs for enhanced traceability and compliance.
  • OCI-compliant and platform-independent container image creation and deployment.

Who Should Use Docker Sandboxes?

Docker Sandboxes is primarily designed for developers, teams, and enterprises that require secure and isolated environments for running AI agents and other untrusted code. Its robust security features make it suitable for scenarios where host machine integrity and data protection are paramount.

  • AI Developers: For safely running AI coding agents (e.g., Claude Code, Copilot CLI) that perform autonomous tasks like package installation, service execution, and file modification.
  • Experimentation and Development Teams: For developers who need to experiment with untrusted code, install various packages, run databases, or compile code without risking their host system.
  • Enterprises with Strict Security Requirements: For organizations prioritizing strong isolation, control, and compliance features for their AI agent runtimes and development workflows.
  • Teams Prioritizing Data Security: For scenarios requiring secure credential handling and policy enforcement to prevent data leakage or unauthorized network connections.

How to Use Docker Sandboxes

To use Docker Sandboxes, developers typically interact with the sbx command-line interface to create, manage, and run isolated environments. A Docker runtime is required on the target machine for deployment.

  1. Install Docker Desktop (which includes Docker Sandboxes) on macOS or Windows.
  2. Utilize the sbx create command to provision a new sandbox environment, optionally specifying a 'kit' for pre-configured tools.
  3. Run AI agents or untrusted code within the created sandbox using sbx run.
  4. Define network and filesystem policies for the sandbox to control its access and behavior.
  5. Manage sandbox lifecycle with commands like sbx daemon restart and sbx prune for cleanup.
  6. Integrate with AI agent platforms like NanoClaw for secure, agentic workflows.

Docker Sandboxes Pricing & Plans

Docker Sandboxes is available through Docker's freemium model, offering various tiers that cater to individual developers and large enterprises. The pricing structure provides access to essential tools and scales up to include advanced security, control, and compliance features.

  • Docker Personal: $0 – Provides essential tools for building and deploying containers, suitable for individual developers.
  • Docker Pro: $11 per user/month – Offers advanced features and additional resources for professional developers.
  • Docker Team: $16 per user/month – Includes collaborative tools designed for small teams.
  • Docker Business: $24 per user/month – Delivers robust security, control, and compliance features for enterprise-level requirements.

Pros

  • Provides strong hardware-level isolation using microVMs, significantly enhancing security for untrusted code execution.
  • Enables AI coding agents to operate autonomously without compromising the host machine or sensitive data.
  • Offers robust security features including network isolation, filesystem lockdown, and secure credential handling.
  • Supports 'Docker-in-Docker' functionality within sandboxes, allowing agents to build and run containers in isolation.
  • Features identity-bound audit logs and policy enforcement, aiding in compliance and control.
  • Continuously updated with new features like microVM-based isolation for macOS/Windows and improved CLI commands.

Cons

  • Some users desire more generalization beyond AI agents, wishing for compatibility with arbitrary docker-compose files or orchestration images.
  • Base images for sandboxes can be large (e.g., ~1.5GB for claude-code), potentially including unnecessary tools for specific use cases.
  • The current implementation can feel tightly coupled to a hardcoded list of AI agents, limiting flexibility for broader development tasks.
  • Performance on macOS, particularly regarding host file system access, has been a general concern for some Docker users, though microVMs aim to mitigate this for sandboxes.

Docker Sandboxes vs Competitors

Docker Sandboxes differentiates itself in the secure execution landscape by providing an integrated platform specifically tailored for AI agent development, leveraging microVMs for hardware-level isolation. While other tools offer components of secure execution, Docker Sandboxes aims for a more complete, out-of-the-box solution.

See every Docker Sandboxes alternative, compared

Docker Sandboxes

Freemium · API

From the Stork blog

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking