Skip to main content
Docker compute agents run in isolated containers, providing reproducible environments with custom packages and dependencies.

Quick Start

1

Basic Docker Setup

2

With Package Installation


How It Works

Docker compute provides isolated, reproducible execution environments with custom package management.

Container Management

Provisioning Containers

Executing Commands

Container Lifecycle


LLM Integration


Common Patterns

Data Processing Pipeline

Web Scraping Environment

Development Environment


Configuration Options

Compute Configuration

Supported Images


Best Practices

Use slim images for faster startup. Alpine images for minimal size. Full images when you need system packages and compilation tools.
Install packages during provisioning rather than runtime. Cache heavy dependencies by using custom Docker images for repeated use.
Always call shutdown_compute() when done to free container resources. Monitor container resource usage for long-running tasks.
Containers provide isolation but share the Docker daemon. Don’t run untrusted code without additional sandboxing measures.

Managed Agents

Overview of managed agent concepts

E2B Cloud

Cloud-based sandboxed execution