How do I use Docker Layer Caching on Windows?

Overview

Currently, Docker Layer Caching is not supported on our Windows executors. However, there are workarounds to achieve similar to parallel results.

 

Solutions

  1.  One workaround is storing the layer caches with CircleCI's native caching functionality:
  2. You can utilize buildx, as an example:
    •  docker buildx build --cache-from=local,src=/{{some}}/{{file}} --cache-to=local,dest=/{{some}}/{{other}}/{{file}}/{{here}}

      In this instance, you can theoretically cache to a local filesystem or directory.

Additional Resources

Docker Buildx: https://docs.docker.com/build/architecture/

CircleCI Caching Dependencies: https://circleci.com/docs/caching/ 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.