dclaude runs Anthropic Claude Code inside Docker with the current directory mounted as the workspace.
- Builds a local Docker image named
dclaude - Uses
node:22-slimas the base image - Installs
@anthropic-ai/claude-codeinside a persistent Docker volume nameddclaude_home - Mounts the current directory to
/workspacein the container
dclaude- main launcher scriptinstall.sh- installsdclaudeat user level (symlink in~/.local/bin)
./install.sh # install or update (symlink to this repo)
./install.sh --uninstall # removeAfter install, dclaude is callable from any directory. git pull in this
repo updates the installed command — no reinstall needed.
dclaude
dclaude --resume
dclaude -p "fix the bug in auth.ts"Runtime data is stored under ${XDG_DATA_HOME:-~/.local/share}/dclaude/.
If ~/.claude.json and/or ~/.claude/ exist on host, they are bind-mounted
read-write into the container. This shares MCP server configs, OAuth tokens
(Jira, Gmail, Calendar, …), slash commands, plugins, skills, and agents
between host and container.
Caveat: running host Claude Code and dclaude simultaneously means both
processes write to the same ~/.claude.json — last-writer-wins.