Docker · Concept
Build cache
Docker reuses build layers when their instructions and input files are unchanged. Improve reuse by ordering layers carefully, shrinking the build context, using bind or cache mounts, and sharing an external cache.
Last updated
Syntax
docker buildx build --cache-from <cache-source> --cache-to <cache-destination> <context>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Cache invalidationBuild cache optimizationCache mountsExternal cacheBuild context.dockerignore files