How do I create a ‘node local’ cache?

I’m running a pipeline that builds and tests some docker images. I put a bit of effort into the docker setup so that I uses layers to cache builds incrementally. This works.

The pipeline is K8 runner.

However it doesn’t actually make anything faster because I have to rebuild the docker image cache on each pipeline. Here I have to download and extract a few gigabytes of docker images. This can take a couple of minutes, if these layers were cached locally it’d take a couple of seconds.

How can I create a docker cache that uses a volume on the node itself. So it’d be shared across pipelines without lots of network calls.


Can you try using drone-cache plugin and see if this is what you are looking for

Harness support