Accelerate Docker Builds with Docker Build Cache

Matthew Zhao
Towards AWS
Published in
4 min readMay 7, 2024

--

One of the slowest yet most common steps in a CI system is building the docker image. As CI runner usually do not share caching layers, each image build operation requires you to separately build each step of a docker image. Even if the steps are rarely changed like updating package repositories or download NodeJS dependencies, which can take multiple minutes to complete.

The solution to is remote docker build caches.

To understand how docker caching works, we first have to understand how docker images are constructed…

--

--

Software Engineer II @ Xometry, I used to have 9 AWS certs but I don't want to drop $2k to renew them :(