Difference between revisions of "Docker buildx cache"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
* <code>[[docker buildx prune --keep-storage]]</code>
 
* <code>[[docker buildx prune --keep-storage]]</code>
 
 
 
* <code>[[docker buildx build]]: [[docker buildx build --cache-from]]</code>
 
* <code>[[docker buildx build]]: [[docker buildx build --cache-from]]</code>
 
* <code>[[docker buildx build --cache-to]]</code>
 
* <code>[[docker buildx build --cache-to]]</code>
Line 16: Line 14:
  
 
== Related ==
 
== Related ==
* [[mode=max]]
+
* <code>[[mode=max]]</code>
 
 
  
 
== See also ==
 
== See also ==
 
* {{docker buildx}}
 
* {{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: