Scenario

A kit from a local registry, three refusals

L2WorkingIncident20 minDebuggingDesign review

RolesAgent Systems EngineeringCustomer AI Deployment

Engine
sbx v0.47.0
Model
none; shell commands inside the sandbox
Hardware
one Mac with the microVM runtime

Situation

A platform team writes its first v3 kit, a shell workload with one allowed host, and pushes it to the team's own registry. In the capture a local registry at localhost:15000 stands in for it. Three commands then fail in a row. sbx kit inspect on the pushed reference says the kit cannot be installed because its source is not in the allowlist. sbx kit inspect on the source directory tries to build it and stops with an exporter error. sbx kit validate on the same directory says the kit is a v3 source kit and the load path has no kit builder. An engineer concludes that v3 kits do not work in this release and proposes to rewrite the kit as a v2 mixin.

You have the three failures, the build logs of two pushes made with two different builders, and the validate output for a v2 mixin from the same tree.

Questions

  1. Three failures, one conclusion. Group the failures by the component that produced each message before you read the build logs.
  2. Which sbx kit commands accept a v3 kit, and which do not?
  3. The two builds used different drivers. What did each export, and which result is a kit?
  4. What does the allowlist refusal protect, and which of the two suggested settings would you apply?
  5. How does the kit reach a sandbox once the three causes are fixed, and what does the manual admit it did not capture?

Commit to a cause after each listing. Write it down before you read the next one.

Evidence

1/7

the two settings that the refused inspect suggests, and its exit code

The error line above these two is cut; it says the kit's source is not in the allowlist and names the current value docker.io/.

evidence/the-refused-inspect.txt
  try: sbx settings set kit.allowedSources '["docker.io/","localhost:15000/m101/"]'
   or: sbx settings set kit.allowedSources '["*"]'
[exit 1]

Source: manuals/docker-sandboxes-101/capture/out/28-kit-inspect.txt, lines 3-5

2/7

sbx kit inspect on the v3 source directory

Read which exporter failed and for which driver.

evidence/inspect-of-the-source-directory.txt
$ sbx kit inspect ./fixtures/kits/hello-kit --json
   → build kit ./fixtures/kits/hello-kit (sbx-kit-src:kit-<id>)
error: build kit ./fixtures/kits/hello-kit: exit status 1 ERROR: failed to build: OCI exporter is not supported for the docker driver. Switch to a different driver, or turn on the containerd image store, and try again. Learn more at https://docs.docker.com/go/build-exporters/
[exit 1]

Source: manuals/docker-sandboxes-101/capture/out/28-kit-inspect-source.txt

3/7

the start of the build with a docker-container builder

Read the driver on the second line and the frontend version on the descriptor line.

evidence/the-driver-that-worked.txt
$ docker buildx build --progress=plain -f fixtures/kits/hello-kit/kit.yaml --builder m101-builder -t m101-registry:5000/m101/hello-kit:v1 --push fixtures/kits/hello-kit
#0 building with "m101-builder" instance using docker-container driver
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1 done
#1 creating container buildx_buildkit_m101-builder0 done
#1 DONE <dur>
#2 [internal] load build definition from kit.yaml
#2 DONE <dur>
#3 resolve image config for docker-image://docker.io/docker/sandbox-kit:3
#3 DONE <dur>
#4 docker-image://docker.io/docker/sandbox-kit:3@sha256:<digest>
#4 DONE <dur>
#5 [internal] load kit descriptor kit.yaml · sandbox-kit 3.0.0-m.8 (129be2ff)
#5 DONE <dur>
#6 [kit] inline build block
#6 DONE <dur>

Source: manuals/docker-sandboxes-101/capture/out/28-buildx.txt, lines 1-16

4/7

the export and push steps of the docker-container build

Count the manifests that the exporter wrote.

evidence/what-the-container-driver-exported.txt
#13 exporting to image
#13 exporting layers done
#13 exporting manifest sha256:<digest> done
#13 exporting config sha256:<digest> done
#13 exporting attestation manifest sha256:<digest> done
#13 exporting manifest list sha256:<digest> done
#13 pushing manifest for m101-registry:5000/m101/hello-kit:v1@sha256:<digest> done
#13 DONE <dur>
View build details: <url>
[exit 0]

Source: manuals/docker-sandboxes-101/capture/out/28-buildx.txt, lines 29-38

5/7

the same build with the default driver of the host daemon

Compare the export steps with the other build.

evidence/what-the-default-driver-exported.txt
$ docker buildx build --progress=plain -f fixtures/kits/hello-kit/kit.yaml -t localhost:15000/m101/hello-kit:docker-driver --push fixtures/kits/hello-kit
#0 building with "desktop-linux" instance using docker driver
#1 [internal] load build definition from kit.yaml
#1 DONE <dur>
#2 resolve image config for docker-image://docker.io/docker/sandbox-kit:3
#2 DONE <dur>
#3 docker-image://docker.io/docker/sandbox-kit:3@sha256:<digest>
#3 CACHED
#4 [internal] load kit descriptor kit.yaml · sandbox-kit 3.0.0-m.8 (129be2ff)
#4 DONE <dur>
#5 [kit] inline build block
#5 CACHED
#6 [internal] load metadata for docker.io/docker/sandbox-templates:shell
#6 DONE <dur>
#7 [internal] load .dockerignore
#7 DONE <dur>
#8 [1/2] FROM docker.io/docker/sandbox-templates:shell
#8 DONE <dur>
#9 [internal] load build context
#9 DONE <dur>
#10 [2/2] COPY HELLO.md /home/agent/HELLO.md
#10 CACHED
#11 [kit] stage sources /usr/share/sandbox/kit/kit
#11 CACHED
#12 exporting to image
#12 exporting layers done
#12 writing image sha256:<digest> done
#12 naming to localhost:15000/m101/hello-kit:docker-driver done
#12 DONE <dur>
#13 pushing localhost:15000/m101/hello-kit:docker-driver with docker
#13 DONE <dur>
View build details: <url>
[exit 0]

Source: manuals/docker-sandboxes-101/capture/out/28-buildx-docker-driver.txt

6/7

sbx kit validate on the v3 source kit

The error names the generation and the missing builder.

evidence/validate-on-the-v3-directory.txt
$ sbx kit validate ./fixtures/kits/hello-kit
error: kit ./fixtures/kits/hello-kit is a v3 source kit and this load path has no kit builder configured; artifact validation failed
[exit 1]

Source: manuals/docker-sandboxes-101/capture/out/13-kit-v3-validate.txt

7/7

sbx kit validate on the v2 mixin

The same command, a different kit generation.

evidence/validate-on-the-v2-mixin.txt
$ sbx kit validate ./fixtures/kits/hello-mixin
VALID: ./fixtures/kits/hello-mixin (directory)
[exit 0]

Source: manuals/docker-sandboxes-101/capture/out/12-validate.txt

The answer

Show the walkthrough
  1. Separate the generations. sbx kit validate passes the v2 mixin with VALID and refuses the v3 directory as a v3 source kit with no builder. The manual's ruling on conflict C13 is that validate, pack, push and pull are v1 and v2 tooling. A v3 kit is an OCI image, built and pushed with Docker tooling. So the validate failure is not a defect: the command was never meant for this kit.
  2. Read the two build logs for the driver. The build that worked ran on a docker-container builder. Its export step wrote layers, a manifest, a config, an attestation manifest and a manifest list, then pushed the manifest. The other build ran on the docker driver of the host daemon; its export wrote an image, named it, and pushed it with docker, with no manifest list and no attestation. The manual read the registry afterwards: the default driver pushed a Docker schema 2 manifest with no annotations, and an image without the descriptor annotation is not a kit to any consumer. The second push looked successful and produced something no sandbox can use.
  3. Read the source inspect failure in that light. sbx kit inspect on the directory tried to build the kit with the host daemon, and the OCI exporter is not supported for the docker driver. The fix is the same as in step 2: a docker-container builder, or the containerd image store that the error names.
  4. Read the admission rule. The refusal of the pushed reference comes from kit.allowedSources, which defaults to docker.io/ since v0.34.0, as conflict C40 records. The error suggests two values. Add the registry prefix localhost:15000/m101/, and do not set *: the error itself says that allowing any remote source is not recommended. The descriptor line of the good build names the frontend 3.0.0-m.8, a milestone, so the pinned frontend version belongs in the ticket too.
  5. Run it by reference. A v3 workload is consumed by sbx run or sbx create with the reference in place of the agent name, and a sandbox cannot mix v3 kits with v1 or v2 kits. The manual says plainly that no capture shows sbx running a v3 kit, because the capture kit never changes sbx settings. Say so when you report.
Show the resolution

Three causes, and none of them is a broken release. The sbx kit artifact commands are v1 and v2 tooling, so validate on a v3 directory is the wrong command. The default docker build driver cannot export an OCI image, so the push it made is not a kit, and the source inspect fails for the same reason; a docker-container builder exported the manifest list with the descriptor annotations. The daemon admits kits only from the prefixes in kit.allowedSources, which is docker.io/ by default, so the team's registry prefix must be added. With the builder changed and the prefix added, the kit runs by reference. The rewrite to a v2 mixin is withdrawn, and the team records that its own run of the kit is the first measurement, because the manual has none.

Show the wrong turns
  • “Set kit.allowedSources to * so every registry works.”

    The error names that option and advises against it. The allowlist is the only check between a typed reference and a kit that configures a sandbox.

  • “The push with the default driver succeeded, so the registry copy is fine.”

    It pushed an image with no descriptor annotation. A consumer sees an ordinary image, not a kit.

  • “Rewrite the kit as a v2 mixin because validate passes on that.”

    The v2 tooling passed because that kit was v2. The v3 kit needs Buildx, not a different format.

  • “Create the kit builder sandbox and run validate again.”

    In the capture the source build ran in the host daemon, and the builder status read not created after it. The validate path still names only v1 and v2 artifacts.

Show the general rule

When one new thing fails three ways, name the component behind each message before you judge the thing. A format check, a build exporter and an admission list are three systems, and each has its own fix. A push that returns success is not proof that the artifact has the shape its consumer needs. Read the manifest back.

Taught in

The descriptor page records the two builds and the allowlist refusal, the kit commands page gives the v2 tooling and the kit settings, and the conflicts register rules on C13 and C40.