Skip to content

let docker client take care of image cache#11

Merged
acarl005 merged 3 commits intomainfrom
andy/refactor-image-pull
Feb 3, 2026
Merged

let docker client take care of image cache#11
acarl005 merged 3 commits intomainfrom
andy/refactor-image-pull

Conversation

@acarl005
Copy link
Copy Markdown
Collaborator

@acarl005 acarl005 commented Feb 3, 2026

For the sidecar image, we were doing a manual call to ImageInspect and then only calling ImagePull if the image wasn't present. This was a temporary workaround which is not longer necessary now that the sidecar image is public.

@acarl005 acarl005 changed the title remove auth in sidecar image pulls and let docker client take care of… let docker client take care of image cache Feb 3, 2026
Comment thread internal/worker/worker.go

// pullImage pulls a Docker image. If authStr is non-empty, it will be used for registry authentication.
// Docker only downloads changed layers, so this is efficient even if the image exists locally.
func (w *Worker) pullImage(ctx context.Context, imageName string, authStr string) error {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that pulling the sidecar and the main environment image are the exact same operation, move this into a reusable function.

@acarl005 acarl005 requested a review from bnavetta February 3, 2026 21:25
Copy link
Copy Markdown
Member

@ianhodge ianhodge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't have a ton of context on this code but this overall makes sense!

@acarl005 acarl005 merged commit 7975cba into main Feb 3, 2026
@acarl005 acarl005 deleted the andy/refactor-image-pull branch February 9, 2026 18:27
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.

2 participants