Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodeploy Docker "Too Many Requests" error - SST Console issue, or my issue? #30

Open
ceigey opened this issue Nov 12, 2024 · 0 comments
Assignees

Comments

@ceigey
Copy link

ceigey commented Nov 12, 2024

Hi all, not sure where this issue stems from.

I've got a Cluster component in an SST app which uses the amazoncorretto:21 image.

Autodeploy failed with this new and unexpected error:

failed to solve: amazoncorretto:21: failed to resolve source metadata for docker.io/library/amazoncorretto:21: failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/amazoncorretto/manifests/sha256:c822834af06f45fb263c9dc719e85954e101e8fb706f3b9bdc2b36fab3844341: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

Following the URL gives:

Anonymous and Free Docker Hub users are limited to 100 and 200 container image pull requests per six hours

I'm certainly not using even 5 or 10 pulls, which makes me think this is a shared allowance across all SST console users on a certain instance?

I've heard people recommend using ECR instead due to these pull limits, the AWS documentation appears to just mention this way of pulling their images:

docker pull public.ecr.aws/registry_alias/repository:tag

(per this link)

But I'm guessing for use with SST Autodeploy where we don't have arbitrary pipeline commands, something like this (based on this tangential stackoverflow answer) might be better?:

- FROM amazoncorretto:21
+ FROM public.ecr.aws/amazoncorretto/amazoncorretto:21

Note, I've only ever used Docker Hub for base images before, so I have yet to try the second version, just not in a position to try it right now...

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

No branches or pull requests

2 participants