BuildKit

BuildKit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit

The project

Relevant features

Working rootless implementation

Demo: buildkit

Standalone usage of buildkit:

Start buildkit daemon:

sudo buildkitd >buildkitd.log 2>&1 &

Run equivalent of docker build:

buildctl build \
    --frontend=dockerfile.v0 \
    --local context=. \
    --local dockerfile=. \
    --output type=image,name=localhost:5000/test,push=true

Demo: buildkit

List images in registry:

curl -s http://localhost:5000/v2/_catalog \
    | jq --raw-output '.repositories[]'

List tags of image:

curl -s http://localhost:5000/v2/test/tags/list \
    | jq --raw-output '.tags[]'