Skip to content

Docker Backend

How It Works

  1. Creates a git worktree in ~/.clauderon/worktrees/<session-name>/
  2. Creates a container with your specified image
  3. Mounts the worktree at /workspace
  4. Starts the chosen agent with your prompt

Creating Sessions

Terminal window
clauderon create --backend docker --repo ~/project --prompt "Fix the bug"
# Custom image
clauderon create --backend docker --image rust:1.85 \
--repo ~/project --prompt "Build the project"
# Resource limits
clauderon create --backend docker \
--cpu-limit 4 --memory-limit 8g \
--repo ~/project --prompt "Heavy computation task"
# Pull policy: always | if-not-present (default) | never
clauderon create --backend docker --pull-policy always \
--repo ~/project --prompt "Use latest image"

All Docker settings are CLI flags — there is no [docker] section in config.toml.

Shared Volumes

Automatically mounted for caching across sessions:

VolumePurpose
clauderon-cargo-registryCargo package cache
clauderon-cargo-gitGit dependencies
clauderon-sccacheRust compilation cache
Terminal window
clauderon clean-cache # Show cache usage (dry run)
clauderon clean-cache --force # Remove all cache volumes

Refreshing Containers

Pull latest image and recreate:

Terminal window
clauderon refresh <session-name>

Mounted Directories

Host PathContainer PathPurpose
~/.clauderon/worktrees/<name>//workspaceGit worktree
~/.clauderon/claude.json/workspace/.claude.jsonClaude onboarding
~/.clauderon/uploads/<id>//workspace/.clauderon/uploads/<id>/Uploaded images
~/.clauderon/hooks//workspace/.clauderon/hooks/Claude Code hooks

Custom Images

Any Docker image works if it has a shell, curl/wget, and git. Claude Code is automatically downloaded. See Custom Images Guide.

Troubleshooting

ProblemFix
Permission deniedsudo usermod -aG docker $USER && newgrp docker
Container won’t startdocker info to check Docker; docker ps -a | grep clauderon for conflicts
Network issuesCheck container network connectivity and DNS resolution
Out of disk spacedocker system df then docker system prune -a