Skip to content

fix: Fix Claude Code CLI installation in runtime container#3

Merged
fanux merged 1 commit intoFullAgent:mainfrom
Che-Zhu:fix/claude-code-command-not-found
Oct 17, 2025
Merged

fix: Fix Claude Code CLI installation in runtime container#3
fanux merged 1 commit intoFullAgent:mainfrom
Che-Zhu:fix/claude-code-command-not-found

Conversation

@Che-Zhu
Copy link
Copy Markdown
Collaborator

@Che-Zhu Che-Zhu commented Oct 16, 2025

Changes:

  • Install Claude Code via npm instead of failed curl script
  • Move developer user creation before Buildah config to fix permissions
  • Ensure /home/developer is owned by developer user, not root

This fixes the "claude: command not found" issue by:

  1. Using npm global install (@anthropic-ai/claude-code) which places the binary in /usr/local/bin/, accessible to all users
  2. Creating developer user BEFORE creating /home/developer/.config/ directories, preventing root ownership of home directory
  3. Allowing Claude Code to create config directories in user's home

Resolves issue: #2 "Sandbox runtime image: claude command not found"

Changes:
- Install Claude Code via npm instead of failed curl script
- Move developer user creation before Buildah config to fix permissions
- Ensure /home/developer is owned by developer user, not root

This fixes the "claude: command not found" issue by:
1. Using npm global install (@anthropic-ai/claude-code) which places
   the binary in /usr/local/bin/, accessible to all users
2. Creating developer user BEFORE creating /home/developer/.config/
   directories, preventing root ownership of home directory
3. Allowing Claude Code to create config directories in user's home

Resolves issue: "Sandbox runtime image: claude command not found"
@fanux fanux merged commit 6c6f50c into FullAgent:main Oct 17, 2025
@Che-Zhu Che-Zhu deleted the fix/claude-code-command-not-found branch October 20, 2025 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants