docker buildx build --cache-to type=registry,ref=myrepo/cache -t myapp .

Category: Docker

docker buildx build --cache-to type=registry,ref=myrepo/cache -t myapp .

Export build cache to a registry for CI reuse

Saves the build cache to a registry so CI systems can reuse it on subsequent runs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.