Skip to content

chore(deploy): add Docker-in-Kubernetes evaluation suite with Kata results - #184

Draft
robo-coderai wants to merge 2 commits into
mainfrom
robo/core-872-dind-evaluation-harness
Draft

robo-coderai wants to merge 2 commits into
mainfrom
robo/core-872-dind-evaluation-harness

Conversation

@robo-coderai

@robo-coderai robo-coderai commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds deploy/dind-evaluation/, a shared test suite for comparing ways to run Docker inside Kubernetes workspaces. Every candidate (Envbox, direct Sysbox, native user namespaces, rootless Podman, Kata, KubeVirt, and others) runs the same run-suite.sh from inside a workspace, so results are directly comparable. This re-tests the August plat-370-experiments spikes on current versions and adds candidates that weren't covered then.

The suite runs use cases in order:

  1. Docker commands: pull, run, outbound network, exec, published port, volumes, memory and CPU limits enforced in the nested container's cgroup, and network namespace isolation
  2. Image builds: single-stage, multi-stage, Buildx
  3. Compose with service networking, and optionally a kind cluster (-k)

By default it stops at the first level that fails. -c runs every level anyway. Each run writes results.jsonl (per-check status and duration) and security-shape.txt (uid, sudo, capabilities, seccomp, user namespace, cgroups, devices, engine info). The node side of the security shape, such as privileged pods, runtime installs, and instance types, can't be seen from inside the workspace, so each candidate's findings.md records it by hand.

Results so far:

Candidate Result
Kata (coder-kata, dogfood EKS) 17 of 17. kind needs /dev/null mounted at /dev/kmsg, which the suite applies automatically.
Rootless Podman (podman-rootless, dogfood EKS) 12 of 17. Containers run and images build, but limits are silently ignored, nested containers share the workspace network, and Compose and kind fail. The root causes are no /dev/net/tun and no cgroup delegation in the pod.

The limit and network checks were added after the Podman run showed that --memory and --cpus can be accepted without being enforced, and that a published port can pass while the nested container shares the workspace network.

Draft: more candidates will be added as results come in.

🤖 Generated with Claude Code

…sults

Add a shared suite that every Docker-in-workspace candidate runs from
inside a workspace, so results are comparable across Envbox, Sysbox,
native user namespaces, rootless Podman, Kata, KubeVirt, and others.
It runs use cases in order (docker commands, image builds, Compose and
kind), records per-check durations as JSON lines, and captures the
workspace security shape.

The first result is Kata on the dogfood EKS cluster: all 15 checks pass,
with a /dev/kmsg workaround for kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Dec 4, 2026

Copy link
Copy Markdown

CORE-872

Running rootless Podman showed that accepting --memory and --cpus is not
the same as enforcing them, and that a published port can pass while the
nested container shares the workspace network. Level 1 now checks that
limits appear in the nested container's cgroup and that it has its own
network namespace. Timing uses /proc/uptime so clock steps can't produce
negative durations, -c runs every level after a failure, and the security
shape records passwordless sudo.

Kata still passes all 17 checks. Rootless Podman on dogfood EKS runs
containers and builds images, but ignores limits, shares the workspace
network, and can't run Compose or kind, because the pod has no
/dev/net/tun and no cgroup delegation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant