Repository navigation
Troubleshooting
Symptoms that affect more than one image, or that are easy to misdiagnose. Anything specific to a single image is in that image's README.
Symptom: a Playwright or Playwright-MCP call fails to start a browser, often complaining that Chrome cannot be found at /opt/google/chrome/chrome.
Cause: @playwright/mcp defaults to the chrome channel — Google Chrome stable, which is not installed. These images ship system Chromium at /usr/bin/chromium instead.
Fix: the images set PLAYWRIGHT_MCP_BROWSER=chromium, PLAYWRIGHT_MCP_EXECUTABLE_PATH=/usr/bin/chromium and PLAYWRIGHT_MCP_HEADLESS=true. @playwright/mcp reads each of its command-line options from such a variable, and Claude Code starts the plugin's server with its own environment, so the plugin's .mcp.json is left as upstream ships it and plugin updates can't undo the setting. See the claude-code README's Playwright MCP plugin section.
If a browser still won't launch:
# Is Chromium there?
which chromium && chromium --version
# Are the variables set? Expect chromium, /usr/bin/chromium, true
printenv PLAYWRIGHT_MCP_BROWSER PLAYWRIGHT_MCP_EXECUTABLE_PATH PLAYWRIGHT_MCP_HEADLESS
# Flags in a .mcp.json override the variables; expect only "@playwright/mcp@latest"
find ~/.claude/plugins -name '.mcp.json' -path '*playwright*' -exec cat {} \;Older images rewrote each .mcp.json with a patch-playwright-mcp script. A file it rewrote passes the same settings as flags, which is harmless, and the next plugin update restores the original.
agent-browser is pointed at the same binary through AGENT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium, set in the image.
Affects claude-code, claude-code-sandbox, ralphex-fe. See #64, #85, #87, #91, and the Playwright Strategy section of the claude-code README.
Symptom: after pulling a newer claude-code image, each Bash tool call in Claude Code logs a non-blocking PreToolUse hook error mentioning rtk.
Cause: the images no longer ship rtk (#241). Older images registered an rtk hook claude hook in ~/.claude/settings.json, which lives on a named volume and survives the rebuild.
Fix: none needed in claude-code: a managed SessionStart hook removes the entry at the start of the next session and leaves other hooks alone. See the claude-code README's Upgrading from an image with rtk note. ralphex-fe strips a host rtk hook from its copy of settings.json at start-up.
Most likely a lifecycle command blocking on stdin. postCreateCommand gets a pseudo-TTY, so anything that prompts will wait forever rather than detecting non-interactive use.
Check the Dev Containers output panel for the last line printed. Guard any prompting command with a redirect and a ceiling:
SOME_TOOL_NONINTERACTIVE=1 timeout 10 some-tool init < /dev/nullNote timeout N costs nothing on success — it returns as soon as the command does. It is only paid when something actually hangs.
Symptom: in claude-code, cf dev or a command like cf d1 raw <id> --local fails with The package "@cloudflare/workerd-linux-<arch>" could not be found. The error then suggests you used npm's --no-optional flag.
Cause: ignore that suggestion. The image deletes cf's bundled workerd runtime (133 MB) on purpose, and local work runs through the project's own copy of cf. The project doesn't have one yet.
Fix: add cf to the project as a dev dependency (cf migrate and cf init do this). The global cf then runs the project's copy, which brings its own workerd. Commands that call the Cloudflare API aren't affected. See Cloudflare CLI.
CLAUDE_CODE_OAUTH_TOKEN is currently documented as required, which is over-specified, and there is no documented path for plugins that need a personal token (the GitHub MCP server, for example). See #118 — read it before wiring up auth, so you don't fight a known gap.
Generate a token with claude setup-token.
Not an image bug — normal growth in caches nothing prunes, behind a limit that was never set.
Start with Docker Disk Maintenance for what to run. Incident: Docker Disk Exhaustion (2026-09-07) explains why it happens and the one setting that turns it from an outage into a nuisance.
It probably isn't being rebuilt, and that's by design — there is no nightly rebuild. Images rebuild only when a tracked tool releases or a build input changes. Every tracked tool except Claude Code also carries a deliberate three-day delay. See Image Tags and Rebuild Policy.
Open an issue at gatezh/devcontainers/issues with the image name, the tag or digest (docker buildx imagetools inspect <image>), the platform, and the failing command with its output.
- #64, #85, #87, #91 — Playwright / Chromium wiring
- #118 — auth token over-specification
- #123 — Docker disk usage
-
#204 —
cf'sworkerdtrim inclaude-code -
#237 — Playwright MCP configured through
PLAYWRIGHT_MCP_*instead of.mcp.jsonrewrites - #241 — rtk removed; the leftover hook and its cleanup
Last verified: 2026-10-22