Registry build cache buildkit

Persist full layer cache in a registry for CI; mode=max caches intermediate stages

docker buildx build --cache-to type=registry,ref=<reg>/cache,mode=max --cache-from type=registry,ref=<reg>/cache -t <reg>/<name> --push .
more buildkit all 4 commands →