Hello, I am trying to cache and restore a docker image between builds. The docker directory is always empty when I run a new build and the image is pulled every time. From what I understand after the first run of this code the docker directory should contain the .tar archive. The tar is 12GB but even when I tried a text file it wasn’t restored.
So Docker caching isn’t officially supported on CircleCI 1.0. This is due to technical issues with Docker running on our LXC platform. If you check the Docker version, you’ll see that it’s a very outdated version.
I’d suggest switching over to CircleCI 2.0 which officially supports Docker. It’s faster and better suited for the job. We even have a proper mechanism for supporting Docker layer caching though each individual host a build runs on may cache layers in its own for some time.