Skip to content

Commit 4acb3d2

Browse files
committed
feat: update Docker image to ghcr.io and add fallback in installer
- Set default Docker image to GitHub Container Registry in scripts - Add fallback to Docker Hub in install.sh if GHCR pull fails - Document available Docker images and usage in README
1 parent 90d547e commit 4acb3d2

3 files changed

Lines changed: 23 additions & 4 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,21 @@ claude-yolo -v ~/.terraform.d:/root/.terraform.d
117117
- **Request Tracing**: Debug with `--trace` flag using claude-trace
118118
- **Docker Socket**: Optional mounting with `CLAUDE_YOLO_DOCKER_SOCKET=true`
119119

120+
## Docker Images
121+
122+
Claude Code YOLO is available from multiple container registries:
123+
124+
```bash
125+
# GitHub Container Registry (recommended, primary)
126+
docker pull ghcr.io/lroolle/claude-code-yolo:latest
127+
128+
# Docker Hub (fallback)
129+
docker pull lroolle/claude-code-yolo:latest
130+
131+
# Use specific registry
132+
DOCKER_IMAGE=lroolle/claude-code-yolo claude-yolo
133+
```
134+
120135
## Manual Setup
121136

122137
```bash

claude.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
# Claude Starter Script with Docker Support
55
# Runs Claude Code CLI locally or in a Docker container for safe execution
66

7-
VERSION="0.2.0"
8-
DOCKER_IMAGE="${DOCKER_IMAGE:-lroolle/claude-code-yolo}"
7+
VERSION="0.2.2"
8+
DOCKER_IMAGE="${DOCKER_IMAGE:-ghcr.io/lroolle/claude-code-yolo}"
99
DOCKER_TAG="${DOCKER_TAG:-latest}"
1010

1111
DEFAULT_ANTHROPIC_MODEL="sonnet-4"

install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

66
SCRIPT_NAME="claude.sh"
77
YOLO_WRAPPER="claude-yolo"
8-
DOCKER_IMAGE="lroolle/claude-code-yolo:latest"
8+
DOCKER_IMAGE="ghcr.io/lroolle/claude-code-yolo:latest"
99
GITHUB_RAW="https://raw.githubusercontent.com/lroolle/claude-code-yolo/main"
1010

1111
echo "Claude Code YOLO Installer"
@@ -46,7 +46,11 @@ chmod +x "$INSTALL_DIR/$YOLO_WRAPPER"
4646
# Pull Docker image
4747
echo ""
4848
echo "Pulling Docker image..."
49-
docker pull "$DOCKER_IMAGE"
49+
if ! docker pull "$DOCKER_IMAGE"; then
50+
echo "Failed to pull from GitHub Container Registry, trying Docker Hub..."
51+
DOCKER_IMAGE_FALLBACK="lroolle/claude-code-yolo:latest"
52+
docker pull "$DOCKER_IMAGE_FALLBACK"
53+
fi
5054

5155
# Success message
5256
echo ""

0 commit comments

Comments
 (0)