Repository navigation
Releases
containix 0.2.0
⚠️ Breaking: requires containerd 2.3 or newer
The shim is now built against the containerd 2.4 library. Shims built against containerd 2.3+ send their startup bootstrap response as protobuf, and containerd 2.2 daemons reject it with unsupported protocol.
Check your nodes before upgrading:
containerd --version # needs v2.3.0 or newerIf any node is still on containerd 2.2, stay on v0.1.1. It has the same security fixes and still works with 2.2.
Changes
- containerd 2.4.2.
containerd/containerd/v22.2.10 → 2.4.2,containerd/api1.10.0 → 1.12.0,ttrpc1.2.8 → 1.2.9. The entrypoint now usesshim.RunShim; containerd 2.3 deprecatedshim.Run. - Security. Includes all of v0.1.1's fixes (Go 1.26.11, containerd, grpc, x/net).
govulncheckreports 0 known vulnerabilities reachable from the shim's code. - End-to-end tests in CI. Every PR and merge, plus a weekly scheduled run, now runs the shim against real containerd 2.3.7 and 2.4.2 on amd64 and arm64. The tests cover:
- a one-shot flake container;
- an unlabelled container passing through to runc;
- a clean failure for a nonexistent flake;
- a long-running container through run, exec, SIGTERM and delete.
- Docs: the README and
docs/kubernetes.mdnow list containerd 2.3+ as a node requirement.
Known issue
Extra arguments passed to the container (for example ctr run … <id> 5 with entrypoint bin/sleep) are not passed to the entrypoint. v0.1.x behaves the same way.
Upgrading
On each node (containerd 2.3+), replace the shim binary and restart containerd:
sudo install -m 755 containerd-shim-containix-v1-linux-$(dpkg --print-architecture 2>/dev/null || uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') /usr/local/bin/containerd-shim-containix-v1
sudo systemctl restart containerdThe stub image (ghcr.io/atmask/containix-empty:0.1.0) and pod annotations are unchanged.
Checksums (SHA-256)
043119066a55add17c8e0f4d074e337471e5ba1035b9181b541ec2c4ffb94203 containerd-shim-containix-v1-linux-amd64
6cb64fc7750b99b5184ff44ddbac031105c5a140be5c98a7b5610f43589e0642 containerd-shim-containix-v1-linux-arm64
containix 0.1.1
Security release for the containerd 2.2 line. No functional changes from v0.1.0.
If your nodes run containerd 2.2, use this release. On containerd 2.3+, upgrade to v0.2.0 instead.
Security
v0.1.0 contained 20 known vulnerabilities that govulncheck reports as reachable from the shim's code. v0.1.1 reports 0.
| Component | v0.1.0 | v0.1.1 | Fixes |
|---|---|---|---|
| Go toolchain (stdlib) | 1.26.3 | 1.26.11 | net/http, crypto/tls, crypto/x509, net/textproto, encoding/asn1: CVE-2026-27145, CVE-2026-42505, CVE-2026-42507, CVE-2026-33818, CVE-2026-56862, CVE-2026-78659, CVE-2026-78663, CVE-2026-78669, CVE-2026-94439, CVE-2026-94440, CVE-2026-97031, CVE-2026-97032, CVE-2026-97054, CVE-2026-111943 |
github.com/containerd/containerd/v2 |
2.2.5 | 2.2.10 | CVE-2026-53493, CVE-2026-53495, CVE-2026-95837, CVE-2026-95838 |
google.golang.org/grpc |
1.80.0 | 1.83.2 | CVE-2026-84304, GO-2026-6061 |
golang.org/x/net |
0.55.0 | 0.60.0 |
Many of these are in server-side code (the HTTP/2 server, containerd's CRI plugin) that the shim links in but may never run. They're listed because static analysis can't rule them out.
Other changes
cilium/ebpf0.16.0 → 0.22.0 (indirect dependency).- The dev flake drops
x86_64-darwinbecause nixpkgs 26.11 no longer supports it. This affects only development on Intel Macs, not the shim binaries.
Upgrading
Replace the shim binary on each node and restart containerd:
sudo install -m 755 containerd-shim-containix-v1-linux-$(dpkg --print-architecture 2>/dev/null || uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') /usr/local/bin/containerd-shim-containix-v1
sudo systemctl restart containerdChecksums (SHA-256)
fcaacc850c515728ce35300e1accb513611b2f684fc7f63205d42a2b553e13cf containerd-shim-containix-v1-linux-amd64
37258ff280b13c5e9a4b9bd72f2e1c1c87878d8c4e4da927a54cd31823ca0cfe containerd-shim-containix-v1-linux-arm64
containix/v0.1.0
containix v0.1.0
The first release of containix — a containerd shim that runs Nix flakes directly as Kubernetes pods, no container images required. Reference a flake in a pod annotation; the shim resolves it, fetches the closure from your binary cache, assembles a rootfs from Nix store paths, and hands off to runc.
⚠️ Experimental. The API will change before v1 — pin to this tag, not a branch. Not recommended for production yet.
How it works
A pod opts in via runtimeClassName: containix and carries the flake reference as an annotation. If the flake's default package declares meta.mainProgram, that's the only annotation you need:
metadata:
annotations:
containix.dev/flake: "github:org/app" # meta.mainProgram becomes the entrypoint
spec:
runtimeClassName: containixAnnotations
| Annotation | Default | Purpose |
|---|---|---|
containix.dev/flake |
— (required) | Flake reference to resolve (nixpkgs#hello, github:org/repo). |
containix.dev/entrypoint |
meta.mainProgram |
Override the executable; relative → flake store path, absolute → literal. |
containix.dev/timeout |
2m |
Max time for build + closure resolution (Go duration, capped at 30m). |
Artifacts
- Prebuilt
containerd-shim-containix-v1binaries for linux/amd64 and linux/arm64. - Also consumable as a Nix flake:
github:atmask/containix(package +nixosModules.default).
Requirements (per node)
containerd, a Nix daemon, a binary cache for cold starts, a pullable stub image (ghcr.io/atmask/containix-empty), plus a RuntimeClass and CRI annotation passthrough. Full setup in the Kubernetes guide.
Validated
End-to-end on NixOS (aarch64), containerd 2.x — system containerd via ctr and single-node k3s via kubectl.
Known limitations
- Self-contained binaries only (no
/bin/shshell-outs or FHS layout yet). - No interactive tooling in-container (
kubectl execlands withoutsh/ls). - NixOS-first; non-NixOS and managed clusters require manual node prep.
Docs: README · Kubernetes guide · Architecture
containix-empty/v0.1.0
containix-empty 0.1.0
A near-empty, multi-arch OCI stub image for use with the containix runtime.
Kubernetes' CRI requires every container to declare an image:, but containix builds the real rootfs from a Nix flake — so the image contents are never used. This stub exists purely to satisfy that requirement.
Image
ghcr.io/atmask/containix-empty:0.1.0
Multi-arch manifest (linux/amd64 + linux/arm64); also tagged :0 for major-version pinning.
Usage
spec:
runtimeClassName: containix
containers:
- name: app
image: ghcr.io/atmask/containix-empty:0.1.0 # required by CRI, contents ignoredThe actual filesystem and entrypoint come from the containix.dev/flake annotation. See the containix v0.1.0 release and the Kubernetes guide.