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

Category: Docker

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

Import build cache from a registry

Loads build cache from a registry to speed up the current build.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.