What is BuildKit and how is it better than the legacy builder?
IntermediateConceptDockerfile Instructions & Builds
Answer
BuildKit is the modern build engine (default since Docker 23). It builds a dependency graph (LLB), runs independent stages in parallel, skips unused stages, has better caching with cache mounts and remote cache export, secret and SSH mounts, multi-platform builds and richer output. Legacy builder is deprecated.