Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

393
Views
Limited time when using local cache in AWS CodeBuild?

I am trying to use the Docker layer cache in AWS CodeBuild. I have seen the effect when using it to reduce the time when building or pulling Docker image, but I found that it can only use local cache in a certain time period (about less than 1 hour). I have not seen any document about this.

Where did I get confused or do I have a way to set up the cache storage time?

Build caching in CodeBuild

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Local cache modes are best effort. They are available for a limited time after the build finishes. The S3 cache option for your artifacts are more durable, but they likely aren't well suited for Docker layers. We don't have documentation on it, as your mileage may vary.

If you run sparse builds, you are unlikely to see the benefits with local caching of your Docker layers. You may instead save and restore layer in Amazon ECR from your build container: https://github.com/aws/aws-codebuild-docker-images/issues/26#issuecomment-370177343.

In a future release, we will enable you to opt for backing up layers in your ECR registry.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!