
dyrandz/claude-codeRun Claude Code in a Docker container to enable AI-powered code assistance without installing it on your local system.
shdocker pull dyrandz/claude-code:latest
shdocker run -dit --name claude-global -v /path/to/your/repository:/repo dyrandz/claude-code:latest bash
🔹 Replace /path/to/your/repository with your actual project directory.
If your local directory is:
Windows Path: D:/Repository
Docker Path: /mnt/d/Repository
shdocker run -dit --name claude-global -v /mnt/d/Repository:/repo dyrandz/claude-code:latest bash
🔎 Verify That the Volume Is Mounted Correctly Run this inside the container:
shmount | grep /repo
✅ Expected Output (if mounted correctly):
/mnt/d/Repository on /repo type drvfs (rw,noatime,...)
🚫 If the output is:
overlay on /repo type overlay (...)
Then Docker failed to mount the Windows folder.
If /repo is still empty, try running:
shdocker run -dit --name claude-global -v "D:/Repository:/repo" dyrandz/claude-code:latest bash
✅ Why This Works:
Windows sometimes requires D:/Repository instead of /mnt/d/Repository.
Using quotes " " ensures correct path parsing in Git Bash.
If your local directory is:
Linux/macOS Path: ~/Repository
Docker Path (Inside Container): /repo
Run:
shdocker run -dit --name claude-global -v ~/Repository:/repo dyrandz/claude-code:latest bash
shdocker exec -it claude-global bash
4️⃣ Run Claude Code Once inside, you can use Claude Code:
🔹 Ask Claude to add a new feature:
shclaude add "Create a new authentication system."
🔹 Ask Claude to explain code:
shclaude explain .
🔹 Refactor your code:
shclaude refactor "Optimize database queries in userService.js"
🛑 Stopping & Restarting the Container ✅ Stop the container:
shdocker stop claude-global
✅ Restart it later:
shdocker start claude-global
✅ Remove the container completely:
shdocker rm -f claude-global
📌 Notes 🔹 Replace /path/to/your/repository with your actual project directory.
🔹 The correct Docker image is dyrandz/claude-code:latest.
🔹 If you need help, check the official Claude Code documentation.
🎯 Start using Claude Code now! 🚀




manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务