Skip to content

Commit ed7066c

Browse files
author
wy1024
committed
update install.sh: Colima UX for Mac without Docker
1 parent d9a296b commit ed7066c

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

install.sh

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,16 @@ ensure_docker() {
147147
}
148148

149149
install_docker_macos() {
150-
# Use Colima (open source, no EULA popup) + Docker CLI via Homebrew
150+
# Use Colima (open source, no EULA popup) + Docker CLI via Homebrew.
151+
# Docker Desktop is recommended for best experience but not required.
152+
warn "Docker not found. ClawFleet will install Colima (open-source Docker runtime)."
153+
warn "For the best experience, install Docker Desktop first: https://docker.com/products/docker-desktop"
154+
warn "Continuing with Colima — this may take a few minutes on first run..."
155+
printf "\n"
151156

152157
# 1. Ensure Homebrew
153158
if ! command -v brew >/dev/null 2>&1; then
154-
step "Installing Homebrew..."
159+
step "Installing Homebrew (prerequisite for Colima)..."
155160
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
156161

157162
# Set up PATH for newly installed Homebrew
@@ -170,9 +175,9 @@ install_docker_macos() {
170175
brew install colima docker 2>&1 | tail -1
171176
ok "Colima and Docker CLI installed"
172177

173-
# 3. Start Colima
174-
step "Starting Docker runtime (Colima)..."
175-
colima start --cpu 2 --memory 4 --disk 60 2>&1 | tail -1
178+
# 3. Start Colima (first run downloads a ~300 MB VM image — be patient)
179+
step "Starting Docker runtime (Colima) — first launch may take 3-5 minutes..."
180+
colima start --cpu 2 --memory 4 --disk 60
176181

177182
wait_for_docker
178183
}
@@ -240,11 +245,11 @@ start_docker_daemon() {
240245

241246
wait_for_docker() {
242247
attempts=0
243-
max_attempts=30
248+
max_attempts=150
244249
while ! $DOCKER_CMD info >/dev/null 2>&1; do
245250
attempts=$((attempts + 1))
246251
if [ "$attempts" -ge "$max_attempts" ]; then
247-
die "Docker did not start within 60 seconds. Please check your Docker installation."
252+
die "Docker did not start within 5 minutes. Please check your Docker installation."
248253
fi
249254
printf "."
250255
sleep 2

0 commit comments

Comments
 (0)