Skip to content

Conversation

@naushkorai
Copy link

@naushkorai naushkorai commented Jan 30, 2026

Adds configurable retry mechanism with basic exponential backoff to handle intermittent failures when authenticating to container registries, particularly GCP (GAR/GCR) where I'm seeing errors intermittently.

  • Add retry-attempts input (default: 0 for backward compatibility, making it opt in)
  • Add retry-delay input (default: 5000ms)
  • Implement exponential backoff retry logic in docker login
    • Chose to just write a simple retry function vs. going with a library
  • Retry all errors except 5xxs
    • I'm seeing intermittent 401 failures
  • Add tests for retry behavior
  • Update README with new input parameters

Attempting to address #885

Adds configurable retry mechanism with basic exponential backoff to handle intermittent failures when authenticating to container registries, particularly GCP (GAR/GCR) where I'm seeing errors intermittently.

- Add retry-attempts input (default: 0 for backward compatibility, making it opt in)
- Add retry-delay input (default: 5000ms)
- Implement exponential backoff retry logic in docker login
  - Chose to just write a simple retry function vs. going with a library
- Retry all errors except 5xxs
  - I'm seeing intermittent 401 failures
- Add tests for retry behavior
- Update README with new input parameters

Signed-off-by: Naush Korai <[email protected]>
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