Skip to content

feat(docker): resilient agent image pre-pull with retry + fallback - #5

Merged
thunderock merged 1 commit into
mainfrom
fix
Jul 1, 2026
Merged

thunderock merged 1 commit into
mainfrom
fix

Conversation

@thunderock

Copy link
Copy Markdown
Owner

Docker-mode tasks relied on docker run's implicit pull, so a transient Docker Hub registry timeout hard-failed the task with a cryptic daemon error. Add a pre-pull step in front of docker run:

  • fast path: a cached image spawns synchronously (cached per session)
  • missing image: docker pull with 3 retries + backoff, streaming progress
  • fall back to any locally cached copy before giving up
  • friendly error + clean exit instead of a raw daemon dump
  • cancellation-safe on kill / renderer reattach mid-pull

Project images (forge-project:*) and non-Docker tasks are unchanged.

Docker-mode tasks relied on `docker run`'s implicit pull, so a transient Docker Hub registry timeout hard-failed the task with a cryptic daemon error. Add a pre-pull step in front of `docker run`:

- fast path: a cached image spawns synchronously (cached per session)
- missing image: `docker pull` with 3 retries + backoff, streaming progress
- fall back to any locally cached copy before giving up
- friendly error + clean exit instead of a raw daemon dump
- cancellation-safe on kill / renderer reattach mid-pull

Project images (forge-project:*) and non-Docker tasks are unchanged.
@thunderock
thunderock merged commit 937c1a0 into main Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant