Difference between revisions of "Docker buildx cache"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
* [[docker buildx build --cache-to]] | * [[docker buildx build --cache-to]] | ||
+ | |||
+ | Official example: | ||
+ | docker buildx build --push -t <registry>/<image> \ | ||
+ | --cache-to type=[[registry]],ref=<registry>/<cache-image>[,parameters...] \ | ||
+ | --cache-from type=registry,ref=<registry>/<cache-image>[,parameters...] . | ||
{{docker buildx}} | {{docker buildx}} |
Revision as of 10:09, 12 May 2023
https://docs.docker.com/build/cache/backends/
Official example:
docker buildx build --push -t <registry>/<image> \ --cache-to type=registry,ref=<registry>/<cache-image>[,parameters...] \ --cache-from type=registry,ref=<registry>/<cache-image>[,parameters...] .
docker buildx
: [ create | use | du | build | inspect | bake | prune | prune --help | --help
], buildx cache, mode=max
Advertising: