Docker on AWS CodeBuild sometimes gives the following error.
According to the link given in the error, it should reset
every 6 hours. However, in my case it didn’t reset even after 12 hours.
An
AWS blog post
recommends two ways to deal with this situation.
Login to the AWS console and start the CloudShell (located in the top navigation bar). Then execute the following
commands one by one. Make sure to update the image name, AWS account ID, and the platform parameter before doing that.
resolves to your current AWS region in the CloudShell.
For more details, refer to the
AWS documentation.
Ensure the CodeBuild service role has the policy attached.
With these steps completed, you’ve successfully mitigated Docker pull rate limits on AWS CodeBuild.