GPU-enabled Docker environment for coding agents on a fresh Linux machine.
- Docker Desktop or Docker Engine
- Docker Compose v2 (
docker compose)
- Node.js
- pixi
- git
- GitHub CLI (
gh)
- OpenCode
- Claude Code
- OpenAI Codex CLI
- PI Coding Agent
Create these directories on the host before starting the container:
mkdir -p ~/coding-agent-box/projects
mkdir -p ~/coding-agent-box/configs/.opencode
mkdir -p ~/coding-agent-box/configs/.claude
mkdir -p ~/coding-agent-box/configs/.codex
mkdir -p ~/coding-agent-box/configs/.piPull and launch the published image:
docker compose pull
docker compose up -dTo pin a specific published version:
CODING_AGENT_BOX_IMAGE=ghcr.io/computbiol/coding-agent-box:v0.1.0 docker compose up -dEnter the container:
docker exec -it coding-agent-box bashTo build the image locally instead of pulling from GHCR:
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build- Release instructions for maintainers are in
docs/releasing.md.
- GPU support requires the host machine to have NVIDIA Container Toolkit installed.
- The container runs as user
agentand the user has passwordless sudo access. - Project files are mounted from
~/coding-agent-box/projectsto/home/agent/projects. - Agent config directories are mounted from
~/coding-agent-box/configs/*to/home/agent/.*.