Difference between revisions of "Docker buildx cache"

From wikieduonline
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/



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]

Advertising: