Docker
Run AgenticSwarmBench in Docker without installing Python.
Build the Image
docker build -t swarmone/agentic-swarm-bench .Run a Speed Benchmark
Mount a volume to save reports. Use host.docker.internal to reach services on your host machine.
docker run --rm -v $(pwd)/results:/results \
swarmone/agentic-swarm-bench speed \
-e http://host.docker.internal:8000 \
-m my-model \
--suite full \
-o /results/report.mdRecording Proxy
Run the recording proxy for agent mode:
docker-compose up proxyDocker Compose
Set the endpoint and model as environment variables, then run:
export ASB_ENDPOINT=http://your-gpu-server:8000
export ASB_MODEL=your-model-name
docker-compose run agentic-swarm-benchExample docker-compose.yml
docker-compose.yml
version: "3.8"
services:
agentic-swarm-bench:
image: swarmone/agentic-swarm-bench
environment:
- ASB_ENDPOINT=${ASB_ENDPOINT}
- ASB_MODEL=${ASB_MODEL}
- ASB_API_KEY=${ASB_API_KEY:-}
volumes:
- ./results:/results
command: >
speed --suite full
-o /results/report.md
proxy:
image: swarmone/agentic-swarm-bench
ports:
- "19000:19000"
environment:
- ASB_ENDPOINT=${ASB_ENDPOINT}
- ASB_MODEL=${ASB_MODEL}
command: >
record -P 19000
-o /results/session.jsonl
volumes:
- ./results:/resultsVolume Mounts
| Host Path | Container Path | Purpose |
|---|---|---|
| $(pwd)/results | /results | Reports and JSON output |
| $(pwd)/workloads | /workloads | Recorded JSONL workloads |
| $(pwd)/config | /config | YAML configuration files |
Networking Tips
- Use host.docker.internal to reach services running on your host (macOS and Windows). On Linux, add --network host.
- For the recording proxy, expose port 19000 and point your agent at http://localhost:19000.
- GPU inference servers on the same Docker network can be reached by service name (e.g., http://vllm:8000).