DIY Docker Layer Caching - Dealing With Ever-Changing Base Image IDs



After following Jon’s tips on DIY docker layer caching at Notes on caching Docker layers in CircleCI, I found out our cache is not used by Docker whenever the base image is updated on Docker Hub.

So this is how I deal with the issue by querying Docker Hub API on the ID of all base images used in the dockerfile:

Ideas, suggestions are highly appreciated. Thanks! :vulcan_salute:


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.