Overview
The Local Docker provider is the default execution backend for Nadoo Sandbox. It runs code in isolated Docker containers on your local machine or server.Requirements
- Docker Engine 20.10+
- Docker Daemon running and accessible
Configuration
Environment Variables
Features
Warm Pool Integration
Local Docker provider integrates with the Warm Pool system for optimized cold start times:- Pre-warmed containers ready for immediate execution
- ~50-100ms cold start latency (vs 2-5s without warm pool)
- Automatic container recycling and health checks
Security Isolation
Each execution runs in a fully isolated container with:- Read-only root filesystem
- No network access (unless explicitly enabled)
- Resource limits (CPU, memory, disk)
- Seccomp and AppArmor profiles
Usage
Basic Execution
Explicit Provider Selection
Container Lifecycle
- Request arrives at the executor
- Check warm pool for available container
- If available, use pre-warmed container; otherwise create new
- Execute code in isolated environment
- Reset container state and return to pool (if warm pool enabled)
Performance
| Metric | Without Warm Pool | With Warm Pool |
|---|---|---|
| Cold Start | 2-5 seconds | 50-100ms |
| Execution Overhead | ~500ms | ~20ms |
| Container Reuse | No | Yes |