DHI workload with Docker Engine, Buildx, and QEMU for building kits across architectures.
10K+
DHI workload with Docker Engine, Buildx, and QEMU for building kits across architectures.
| Name | Required | Default | Description |
|---|---|---|---|
buildkitExpose | Optional | false | Let BuildKit listen on TCP for the host's remote driver (unauthenticated root build API) Options: false, true |
buildkitPort | Optional | 3330 | In-container TCP port BuildKit listens on when buildkitExpose is true |
version | Required | — | Kit Builder policy revision |
volumeSize | Optional | 10g | Size of the persistent Docker image and build cache volume |
[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]| Type | Required | Description | |
|---|---|---|---|
com.docker.sandbox/privileged@1 | Required | Runs Docker-in-Docker and registers QEMU emulators | |
com.docker.sandbox/volume@1 | Required | Persists Docker images and build cache across sandbox restarts | |
com.docker.sandbox/long-running@1 | Required | Keep the builder available between build clients | |
com.docker.sandbox/kit-registry@1 | Required | Push built kit images into the runtime's image store | |
com.docker.sandbox/port@1 | Required | — | |
com.docker.sandbox/resources@1 | Required | — | |
com.docker.sandbox/network-policy@1 | Required | — | |
com.docker.sandbox/lifecycle@1 | Required | — | |
com.docker.sandbox/agent-context@1 | Optional | — | |
com.docker.sandbox/agent-context@2 | Optional | — | |
sbx run sbx/kit-builder:latestRun the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbxThis 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.
sbx run sbx/kit-builder:latest /path/to/workspace
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.
| Argument | Default | Description | Accepted values |
|---|---|---|---|
volumeSize | 10g | Size of the persistent Docker image and build cache volume | A runtime-supported size, such as 10g or 50g. |
buildkitExpose | false | Let BuildKit listen on TCP for the host's remote driver (unauthenticated root build API) | false or true. |
buildkitPort | 3330 | In-container TCP port BuildKit listens on when buildkitExpose is true | A 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
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.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.