HUB
Sign inSign up
kit-builder logo

sbx/kit-builder

Verified Publisher

By Docker, Inc

•Updated about 22 hours ago

DHI workload with Docker Engine, Buildx, and QEMU for building kits across architectures.

Sandbox Kit
0

10K+

sbx/kit-builder repository overview

Digest

sha256:0189cfefe044…

Size

135.6 MB

Schema

v3

Pushed

about 22 hours ago

Specificationspec.yaml

WORKLOAD

DHI workload with Docker Engine, Buildx, and QEMU for building kits across architectures.


Arguments
NameRequiredDefaultDescription
buildkitExposeOptionalfalse

Let BuildKit listen on TCP for the host's remote driver (unauthenticated root build API)

Options: false, true
buildkitPortOptional3330

In-container TCP port BuildKit listens on when buildkitExpose is true

versionRequired—

Kit Builder policy revision

volumeSizeOptional10g

Size of the persistent Docker image and build cache volume


Provides[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], deb/[email protected], deb/[email protected], deb/ca-certificates@20250419, deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/[email protected], deb/tzdata@2026, deb/[email protected], deb/[email protected]

CapabilitiesExpand a row to see its full configuration. See the full spec for the complete descriptor.
TypeRequiredDescription
com.docker.sandbox/privileged@1RequiredRuns Docker-in-Docker and registers QEMU emulators
com.docker.sandbox/volume@1RequiredPersists Docker images and build cache across sandbox restarts
com.docker.sandbox/long-running@1RequiredKeep the builder available between build clients
com.docker.sandbox/kit-registry@1RequiredPush built kit images into the runtime's image store
com.docker.sandbox/port@1Required—
com.docker.sandbox/resources@1Required—
com.docker.sandbox/network-policy@1Required—
com.docker.sandbox/lifecycle@1Required—
com.docker.sandbox/agent-context@1Optional—
com.docker.sandbox/agent-context@2Optional—

Run in a sandbox

sbx run sbx/kit-builder:latest

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠

⁠Kit Builder for Docker Sandboxes

This v3 workload Kit provides Docker Engine, Buildx, and QEMU emulators for building Sandbox Kits across architectures. The startup hooks start the engine and select the sbx-builder container-driver builder.

This Kit is built on Docker Hardened Images.

Kit Builder requires a local Docker Sandboxes runtime with privileged execution, persistent volumes, and com.docker.sandbox/kit-registry@1 support. Cloud Sandboxes currently lacks the required capabilities, so sbx --cloud run sbx/kit-builder:latest is unsupported.

⁠Run

sbx run sbx/kit-builder:latest /path/to/workspace

⁠Kit arguments

Set these arguments when creating the sandbox with --kit-arg <name>=<value>. Repeat the flag for multiple arguments. Use --kit-arg <kit>.<name>=<value> to target one kit in a composition, as in the example below.

ArgumentDefaultDescriptionAccepted values
volumeSize10gSize of the persistent Docker image and build cache volumeA runtime-supported size, such as 10g or 50g.
buildkitExposefalseLet BuildKit listen on TCP for the host's remote driver (unauthenticated root build API)false or true.
buildkitPort3330In-container TCP port BuildKit listens on when buildkitExpose is trueA valid TCP port written with four or five digits.

volumeSize applies when the runtime provisions new Docker storage. It does not resize existing or retained volumes. Runtimes can retain this volume after sandbox deletion and reattach it when the same sandbox name and kit are used. A different size requires fresh storage. Docker Sandboxes' Classic backend retains kit volumes, and there is currently no local sbx command to remove one retained volume. Recreating the same builder can therefore keep its previous size and build cache.

buildkitPort selects the port inside the sandbox, not the published host port. buildkitExpose=false keeps the TCP listener disabled. Enable it only when the runtime binds the published endpoint to host loopback; the endpoint is an unauthenticated root build API. Read the host port from sbx kit builder status.

sbx run sbx/kit-builder:latest \
  --kit-arg kit-builder.volumeSize=50g \
  --kit-arg kit-builder.buildkitExpose=true --kit-arg kit-builder.buildkitPort=3330 \
  /path/to/workspace

⁠Authentication and configuration

Inside the sandbox, build a kit with the selected builder.

docker buildx build --platform linux/amd64,linux/arm64 -f kit.yaml .

Add --output type=oci,dest=out.tar to export an OCI archive. The Docker store persists across sandbox restarts and provides the build cache. Retention after sandbox deletion depends on the runtime's volume policy.

Builds can fetch arbitrary registries, package repositories, and source hosts, subject to host and organization policy. This workload has no general package manager or development toolchain.

Remote BuildKit access is off by default. Set the create-time kit argument buildkitExpose=true only when the runtime binds its published endpoint to host loopback. The endpoint is an unauthenticated root build API. Read the assigned port from sbx kit builder status before creating a remote Buildx client.

  • sbx/shell⁠ provides a general development workload. Kit Builder provides the dedicated build engine.

⁠Source and security

For the Kit format and capability contracts, see the Sandbox Kit v3 specification⁠.

For runtime setup, see the Docker Sandboxes documentation⁠. For provenance, SBOM, VEX, and image verification, see the Docker Hardened Images documentation⁠.

Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. Product names and logos do not imply sponsorship or endorsement.