talira

BuildKit

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 APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what BuildKit does.

  1. kaniko Build Container Images In Kubernetes
  2. cargo-chef Cache the dependencies of your Rust project and speed up your Docker builds.
  3. Depot Software delivery built for machine scale
  4. Buildah A tool that facilitates building OCI container images
  5. Docker Buildx Docker CLI plugin for extended build capabilities with BuildKit
  6. Docker Build Cloud Build container images faster on cloud builders with a shared cache, locally and in CI

Compare BuildKit with the top 3