concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
open sourceApache-2.0self-hostablefree
BuildKit is the build engine behind modern docker build and buildx. It resolves build graphs concurrently, caches instructions efficiently, imports and exports build cache (to registries or other backends), supports distributable workers and rootless execution, and provides Dockerfile features like RUN --mount=type=cache.
Ways to install
Package managers
Problems it solves
- export my Docker build cache to a registry so CI can reuse it
- keep package manager caches between docker builds with a cache mount
- independent stages of my Dockerfile build one after another instead of in parallel
- build container images without root privileges
- run docker builds on a remote builder or in Kubernetes
- docker build cache keeps growing and never gets garbage collected
- CI throws away Docker layers between runs
- build images from something other than a Dockerfile
Features
- concurrent dependency resolution
- instruction caching
- cache import/export
- garbage collection
- rootless
- distributable workers
- multiple output formats
- pluggable frontends
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what BuildKit does.
- kaniko Build Container Images In Kubernetes
- cargo-chef Cache the dependencies of your Rust project and speed up your Docker builds.
- Depot Software delivery built for machine scale
- Buildah A tool that facilitates building OCI container images
- Docker Buildx Docker CLI plugin for extended build capabilities with BuildKit
- Docker Build Cloud Build container images faster on cloud builders with a shared cache, locally and in CI
