layer-containerd
| Repo | box/github.com/opencharly/layer-containerd:v2026.318.0946 |
containerd, installed and configured for a host. It writes a version-4 config.toml whose CRI
default snapshotter is overlayfs (CONTAINERD.md §1 rule 3; native and blockfile stay
served), whose gRPC listener lives under plugins."io.containerd.server.v1.grpc" (a top-level
[grpc] is IGNORED by a v4 config and the daemon then binds the default socket — MEASURED), whose
CRI runtime map carries a crun default handler and a krun handler with
pod_annotations = ["krun.*"] (both with SystemdCgroup = true), and it enables
containerd.service. The narrow seccomp profile
/etc/containerd/seccomp/crabbox-userns.json is GENERATED from the INSTALLED containerd’s own
DefaultProfile() plus {"names":["unshare","clone"],"action":"SCMP_ACT_ALLOW"}, with clone3
left ENOSYS and keyctl/mount still EPERM (CONTAINERD.md §3.1.1) — never a copied blob.
kernel.unprivileged_userns_clone=1 is persisted and applied where that sysctl exists. The
preparation step creates and formats the scratch image the blockfile plugin clones, because the
plugin loads as error without one (MEASURED: “failed to copy scratch: failed to open source
…/scratch_file”). A separate step loads and persists xt_multiport, the iptables match the CNI
portmap plugin needs (MEASURED: “Extension multiport revision 0 not supported, missing kernel
module?”). The daemon-reported assertion lives in this repo’s own bed check-containerd-vm,
which is where the substrate is asserted; this candy writes the config and prepares the
directories it needs.
Services
Section titled “Services”containerdcontainerd
Acceptance plan
Section titled “Acceptance plan”This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.
| Intent | Step |
|---|---|
run |
prepare and repair the daemon state and root directories for the identity that will run it |
run |
write the version-4 containerd config the host contract prescribes |
run |
write the seccomp-profile generator (the installed containerd’s DefaultProfile plus the two rules) |
run |
generate the narrow seccomp profile from the installed containerd |
run |
set kernel.unprivileged_userns_clone=1 where that sysctl exists |
run |
load and persist the xt_multiport match the CNI portmap plugin needs |
check |
the daemon the config belongs to is installed |

