Difference between revisions of "Docker buildx cache"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
 
   --cache-to type=[[registry]],ref=<registry>/<cache-image>[,parameters...] \
 
   --cache-to type=[[registry]],ref=<registry>/<cache-image>[,parameters...] \
 
   --cache-from type=registry,ref=<registry>/<cache-image>[,parameters...] .
 
   --cache-from type=registry,ref=<registry>/<cache-image>[,parameters...] .
 +
 +
== Related ==
 +
* [[mode=max]]
 +
  
 
== See also ==
 
== See also ==
 
* {{docker buildx}}
 
* {{docker buildx}}

Revision as of 10:41, 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


See also

Advertising: