[FEATURE] Provide a direct binary download URL and/or official Docker image

Resolved 💬 2 comments Opened Mar 16, 2026 by avollmerhaus Closed Apr 13, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

There is no clean way to install Claude Code into a container image. The installer-supplied binary under ~/.local gets shadowed when $HOME is bind-mounted at runtime for persistent user state (credentials, config, session data).

My workaround for now is to chase the symlink post-install and relocate the binary:

  RUN curl -fsSL https://claude.ai/install.sh | bash \
   && realbin="$(readlink -f "$HOME/.local/bin/claude")" \
   && install -m 0755 "$realbin" /usr/local/bin/claude \
   && rm -rf "$HOME/.local"

This works but is fragile, as it depends on internal installer layout that could change at any release.

Proposed Solution

Any of the following would solve this:

  • An official Docker image
  • A direct binary download URL, so we could curl -o /usr/local/bin/claude https://downloads.anthropic.com/claude-code/latest/linux-$(uname -m)
  • An --install-dir or --prefix flag on install.sh
  • Native deb, apk, rpm packages / repos

Alternative Solutions

_No response_

Priority

Low - Nice to have

Feature Category

Other

Use Case Example

Using claude from a Docker image provides a really convenient way to limit the agent's access to the host system.

Additional Context

_No response_

View original on GitHub ↗

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