Files
developer-roadmap/roadmaps/docker/content/efficient-layer-caching@frshJqVMP8D7o_7tMZMPI.md
Aykhan Shahsuvarov 317e25b44a docs(docker): add hands-on prepare.sh tutorials to matching nodes (#10494)
Adds one @course@ link to ten Docker roadmap topics, each pointing at a
tutorial that runs in a live Docker sandbox in the browser, and links the
full course from the DevOps roadmap Docker node.
2026-10-27 11:26:48 +01:00

879 B

Efficient Layer Caching

When building container images, Docker caches the newly created layers. These layers can then be used later on when building other images, reducing the build time and minimizing bandwidth usage. However, to make the most of this caching mechanism, you should be aware of how to efficiently use layer caching. Docker creates a new layer for each instruction (e.g., RUN, COPY, ADD, etc.) in the Dockerfile. If the instruction hasn't changed since the last build, Docker will reuse the existing layer.

Visit the following resources to learn more: