Difference between revisions of "Docker buildx cache"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
  
 
* <code>[[docker buildx build]]: [[docker buildx build --cache-from]]</code>
 
* <code>[[docker buildx build]]: [[docker buildx build --cache-from]]</code>
* [[docker buildx build --cache-to]]
+
* <code>[[docker buildx build --cache-to]]</code>
  
  
Line 15: Line 15:
 
   --cache-from type=registry,ref=<registry>/<cache-image>[,parameters...] .
 
   --cache-from type=registry,ref=<registry>/<cache-image>[,parameters...] .
  
 
+
== See also ==
{{docker buildx}}
+
* {{docker buildx}}

Revision as of 10:40, 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...] .

See also

Advertising: