Docker Buildx and Multi-platform
Buildx cache export
Export selected build cache to a supported backend. Separate image output and protect cache trust boundaries. Check driver, store and exporter support before comparing measurements.
Formal Syntax & Structure
docker syntaxdocker
--cache-to type=TYPE,...Working Example
Example Snippetdocker
--cache-to type=local,dest=./bm-cache-new,mode=max