BuildKit — The Next-Generation Docker Build Engine
Docker's legacy builder processes Dockerfile instructions sequentially, one layer at a time, even when stages have no dependency on each other. BuildKit changes this fundamentally — it analyzes the build graph, parallelizes independent stages, provides smarter caching, and adds features that were simply impossible before: secret mounts that never leak into image layers, SSH forwarding for private repos, and building images for architectures your machine does not even run.
