Skip to content

Docker container CLI auth fails with root user permission error #47

@jacobisak2

Description

@jacobisak2

Describe the bug\nWhen running the claude-wrapper in Docker (as configured by install-service.sh), requests to /v1/chat/completions return [Request interrupted by user] instead of actual Claude responses.\n\nDocker logs show:\n--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons\n\nTo Reproduce:\n1. Install via install-service.sh (runs as root in Docker)\n2. Send POST request to /v1/chat/completions\n3. Get [Request interrupted by user] response\n\nExpected behavior:\nActual Claude responses\n\nEnvironment:\n- Docker container running as root\n- CLAUDE_AUTH_METHOD=cli (default)\n- ~/.claude mounted to /root/.claude in container\n- Auth token is valid (expires May 10, 2026)\n\nPossible fix:\n- Run container as non-root user\n- Or support API_KEY auth method in Docker\n- Or use host's Claude CLI via volume mount

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions