Difference between revisions of "Docker buildx cache"

From wikieduonline
Jump to navigation Jump to search
 
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>

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: