Skip to content

refactor: reuse registry session for OCI pulls#2975

Merged
dgageot merged 1 commit into
docker:mainfrom
dgageot:board/a4a3f84a74eae75f
Jun 3, 2026
Merged

refactor: reuse registry session for OCI pulls#2975
dgageot merged 1 commit into
docker:mainfrom
dgageot:board/a4a3f84a74eae75f

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Jun 2, 2026

Anonymous-first pull with credential fallback on 401/403/429. This change reuses a single remote.Puller across digest, manifest, and layer downloads to avoid duplicate authentication attempts and improve performance.

The refactored implementation preserves platform digest behavior and retries credentialed storage on lazy layer authentication and rate-limit failures. By maintaining one session state, we eliminate redundant auth flows while keeping the same error recovery semantics.

Validation: task lint, go test -race ./pkg/remote/..., task build, task test.

@dgageot dgageot requested a review from a team as a code owner June 2, 2026 19:16
docker-agent

This comment was marked as outdated.

@dgageot dgageot force-pushed the board/a4a3f84a74eae75f branch from aeb2f3e to e2824a7 Compare June 3, 2026 07:27
@dgageot dgageot merged commit bc2bbac into docker:main Jun 3, 2026
5 checks 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.

3 participants