I'm calling about 10 flows per hour that use the P...
# ask-community
j
I'm calling about 10 flows per hour that use the Prefect image on DockerHub, and it appears I've hit the unauthenticated rate limit:
Copy code
Flow run could not be submitted to infrastructure: TaskFailedToStart - CannotPullContainerError: pull image manifest has been retried 5 time(s): httpReadSeeker: failed open: unexpected status code <https://registry-1.docker.io/v2/prefecthq/prefect/manifests/sha256:274a9d0cf48074565a9bf5dc96b7d922f97d6972689f743a5b971893a6fc67dc>:

 429 Too Many Requests - Server message: toomanyrequests: You have reached your unauthenticated pull rate limit. <https://www.docker.com/increase-rate-limit>
Is there any way for me to authenticate our Prefect Cloud with a DockerHub account? Or is it recommended I push the Prefect image I'm using to our private ECR?
j
hey! This rate limit is between your ECS and docker hub at runtime. Prefect Cloud's not in the equation here. You'd have to authenticate your ECS with dockerhub,. Which I believe you can do in your task definition with `repositoryCredentials`: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html#ECS-Type-ContainerDefinition-repositoryCredentials You can also like you said push the prefect image to ECR or setup a pull through cache in ECR as well
🙏 1
j
Okay much appreciated! That makes sense
For now I've just decreased my scheduling to be a bit less than 10 deployments per hour but I will look into those options in ECS and ECR!
🙌 1