Difference between revisions of "Docker buildx cache"
Jump to navigation
Jump to search
(Created page with "https://docs.docker.com/build/cache/backends/") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
https://docs.docker.com/build/cache/backends/ | https://docs.docker.com/build/cache/backends/ | ||
+ | |||
+ | |||
+ | |||
+ | * <code>[[docker buildx prune --keep-storage]]</code> | ||
+ | * <code>[[docker buildx build]]: [[docker buildx build --cache-from]]</code> | ||
+ | * <code>[[docker buildx build --cache-to]]</code> | ||
+ | |||
+ | |||
+ | 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...] . | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[mode=max]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{docker buildx}} | ||
+ | |||
+ | [[Category:Docker]] |
Latest revision as of 10:42, 12 May 2023
https://docs.docker.com/build/cache/backends/
docker buildx prune --keep-storage
docker buildx build: docker buildx build --cache-from
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...] .
Related[edit]
See also[edit]
docker buildx
: [create | use | du | build | inspect | bake | prune | prune --help | --help
], buildx cache,mode=max
Advertising: