fix: make Chrome work inside Docker for Claude Max OAuth login #14
Reference in New Issue
Block a user
Delete Branch "fix/chrome-in-docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
--no-sandboxand--disable-dev-shm-usage, so the OAuth browser popup never completes/usr/local/bin/google-chromewrapper that injects these required container flagsBROWSER=/usr/local/bin/google-chromeso Claude Code (which callsxdg-openon Linux) and any other tool uses the wrapper automaticallyxdg-utilsto ensurexdg-opencan resolve browser handlers in the VNC environmentThe OAuth callback flow works correctly once Chrome actually runs — both the browser and Claude Code's local auth server are in the same container network namespace, so the
localhostredirect completes normally.Test plan
claude— it should open Chrome in the VNC window pointing to the Claude login pageclaudeshould show as authenticated🤖 Generated with Claude Code