Cache store/restore docker images/layers during docker builds in drone

We attempt to see if it makes sense to cache the docker layers using the regular caching store/restore process.
Investigate if (after a docker build) the layers are cached in this dir:

${DRONE_WORKSPACE}/.docker/

or

/drone/src/example.com/org/repo/.docker/

@bradrydzewski would you please tell me how to implement this?

@bradrydzewski any idea about this ?

see https://laszlo.cloud/the-ultimate-droneci-caching-guide

you may also consider using the exec runner instead of the docker runner, the former executes pipelines directly on the host machine and therefore uses the host machine docker layer cache, which is available to all pipelines.

@ @ashwilliams1i didnt get how does it work?