[BUG] Claude exits silently when run from a container

Resolved 💬 5 comments Opened Dec 9, 2025 by xuv Closed Jan 14, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When I try to run Claude code in a container, whether in the official .devcontainer or else, when launching claude inside the container and reaching out the step to allow Claude to work on the current directory, Claude exits silently afterwards.

What Should Happen?

Claude should display its TUI interface and allow me to prompt it.

Error Messages/Logs

2025-12-09T16:17:44.198Z [DEBUG] Temp file written successfully, size: 44749 bytes
2025-12-09T16:17:44.198Z [DEBUG] Applied original permissions to temp file
2025-12-09T16:17:44.198Z [DEBUG] Renaming /home/node/.claude/.claude.json.tmp.8186.1765297064197 to /home/node/.claude/.claude.json
2025-12-09T16:17:44.198Z [DEBUG] File /home/node/.claude/.claude.json written atomically
2025-12-09T16:17:46.197Z [DEBUG] Skipping SessionEnd:other hook execution - workspace trust not accepted
2025-12-09T16:17:46.201Z [DEBUG] Cleaned up session snapshot: /home/node/.claude/shell-snapshots/snapshot-zsh-1765297063939-tinr2a.sh
2025-12-09T16:17:46.202Z [DEBUG] LSP server manager shut down successfully
2025-12-09T16:17:46.204Z [DEBUG] BigQuery metrics exporter flush complete
2025-12-09T16:17:46.205Z [DEBUG] BigQuery metrics exporter flush complete
2025-12-09T16:17:46.205Z [DEBUG] BigQuery metrics exporter shutdown complete

Steps to Reproduce

With devcontainer-cli installed

  1. launch with devcontainer exec --workspace-folder . bash
  2. Once in the container: launch Claude with claude
  3. Go through the logging process
  4. Claude asks permission to accesse /workspace
  5. Replying 1. Yes, I trust this folder
  6. Claude exits

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.62 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗