Sign inSign up

kumo203/ks-claude-code-container

By kumo203

•Updated 3 months ago

This image is to use Claude Code in docker container. It has node, python, and powershell installed.

Image
Developer tools
0

392

kumo203/ks-claude-code-container repository overview

⁠English Version

⁠What is this image for?

This image provides a ready-to-use Docker environment for running Claude Code without changing your local machine environment.

Run this container and then run "claude" to start Claude Code in the container environment.Claude Code often needs Node.js and Python. And for Office or Windows file manipulation, PowerShell is sometimes needed also. This image has all of them pre-installed, so you can focus on coding, not setup.

Important thing. Please make sure to mount the host folder to /root to persist your Claude authentication tokens and settings (stored in /root/.claude/) with -v "C:\Claude_Work_Folder\Setting:/root" option. Example is in the following usage.

⁠Usage

⁠Pull the image
docker pull kumo203/ks-claude-code-container
⁠Run the container
docker run -it --rm --name container-claude -v "<work_folder>:/src" -v "<setting_folder>:/root" kumo203/ks-claude-code-container /bin/bash
⁠Run Claude Code
claude
⁠Example
docker run -it --rm --name container-claude -v "C:\claude\project_A:/src" -v "C:\claude\setting:/root" kumo203/ks-claude-code-container /bin/bash
⁠Volume options explained
OptionDescription
-v "<work_folder>:/src"Mounts your local working directory into /src inside the container. Place your project files here so Claude Code can read and edit them.
-v "<setting_folder>:/root"Mounts the folder containing your .claude directory into /root. This preserves your Claude authentication and settings across container restarts.
⁠Other flags
FlagDescription
-itRuns the container interactively with a terminal attached.
--rmAutomatically removes the container when you exit, keeping your system clean.
--name container-claudeAssigns a friendly name to the container for easy reference.

⁠Repository

https://github.com/kstns-ai/ks_claude_code_container/⁠

⁠Vietnamese Version

⁠Image này dùng để làm gì?

Image này cung cấp môi trường Docker sẵn sàng sử dụng để chạy Claude Code mà không cần thay đổi môi trường máy local của bạn.

Chạy container này rồi gõ lệnh "claude" để khởi động Claude Code trong môi trường container. Claude Code thường cần Node.js và Python. Và để thao tác với file Office hoặc Windows, đôi khi cũng cần PowerShell. Image này đã cài đặt sẵn tất cả, nên bạn có thể tập trung vào việc code thay vì cài đặt.

Lưu ý quan trọng. Hãy chắc chắn mount thư mục host vào /root để lưu giữ token xác thực và cài đặt Claude của bạn (được lưu trong /root/.claude/) bằng tùy chọn -v "C:\Claude_Work_Folder\Setting:/root". Ví dụ được trình bày trong phần hướng dẫn sử dụng bên dưới.

⁠Hướng dẫn sử dụng

⁠Pull image
docker pull kumo203/ks-claude-code-container
⁠Run container
docker run -it --rm --name container-claude -v "<work_folder>:/src" -v "<setting_folder>:/root" kumo203/ks-claude-code-container /bin/bash
⁠Run Claude Code
claude
⁠Ví dụ
docker run -it --rm --name container-claude -v "C:\claude\project_A:/src" -v "C:\claude\setting:/root" kumo203/ks-claude-code-container /bin/bash
⁠Giải thích các tùy chọn Volume
Tùy chọnMô tả
-v "<work_folder>:/src"Mount thư mục làm việc local của bạn vào /src bên trong container. Đặt file dự án của bạn ở đây để Claude Code có thể đọc và chỉnh sửa.
-v "<setting_folder>:/root"Mount thư mục chứa thư mục .claude của bạn vào /root. Điều này giúp bảo toàn thông tin xác thực và cài đặt Claude khi khởi động lại container.
⁠Các flag khác
FlagMô tả
-itChạy container ở chế độ tương tác với terminal được gắn kèm.
--rmTự động xóa container khi bạn thoát, giữ hệ thống sạch sẽ.
--name container-claudeĐặt tên dễ nhớ cho container để dễ tham chiếu.

⁠Repository

https://github.com/kstns-ai/ks_claude_code_container/⁠

Tag summary

Content type

Image

Digest

sha256:788cc67a7…

Size

520.1 MB

Last updated

3 months ago

docker pull kumo203/ks-claude-code-container