{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreif7jk4gtuwmas22cfnh5z25f3ebzcny36lbvqfjgtqoj5apny4wyq",
"uri": "at://did:plc:5sgu76a53rz3n6unbykmovqy/app.bsky.feed.post/3mlogtr64k6a2"
},
"description": "BuildKit is the modern build backend for Docker and the OCI ecosystem. It replaces the original Docker builder with a concurrent, cache-aware engine that builds OCI images from Dockerfiles much faster and with finer control.\n\n\nKey capabilities\n\n * Parallel build graph. Independent stages and instructions run concurrently rather than strictly top-to-bottom.\n * Granular caching. Layer caches keyed on instruction content; remote caches that can be pushed to and pulled from a registry.\n * Cache moun",
"path": "/engineering-glossary/buildkit-docker-builder/",
"publishedAt": "2026-05-12T18:40:35.000Z",
"site": "https://sahilkapoor.com",
"tags": [
"Docker",
"OCI",
"Image Layer",
"CI/CD"
],
"textContent": "**BuildKit** is the modern build backend for Docker and the OCI ecosystem. It replaces the original Docker builder with a concurrent, cache-aware engine that builds OCI images from Dockerfiles much faster and with finer control.\n\n## Key capabilities\n\n * **Parallel build graph.** Independent stages and instructions run concurrently rather than strictly top-to-bottom.\n * **Granular caching.** Layer caches keyed on instruction content; remote caches that can be pushed to and pulled from a registry.\n * **Cache mounts.** Per-step caches for package managers (pip, npm, apt, Go modules) that persist between builds without bloating image layers.\n * **Secret and SSH mounts.** Inject secrets at build time without baking them into layers.\n * **Multi-platform builds.** Build for amd64, arm64, and others from a single host via QEMU emulation.\n * **Frontend pluggability.** Dockerfile is one frontend; others (Buildpacks, Nix-based) can target BuildKit.\n\n\n\n## How it is used\n\n * **Docker.** BuildKit is the default builder for `docker build` on modern installations.\n * **buildx.** Docker CLI plugin that exposes BuildKit's multi-platform and remote-cache features.\n * **Standalone.** BuildKit can run as a remote build service for CI to share caches across runners.\n\n\n\nš\n\n**Related Terms**\nDocker, OCI, Image Layer, CI/CD.",
"title": "BuildKit",
"updatedAt": "2026-05-13T19:14:46.612Z"
}