Skip to content

refactor(image): replace podman runtime with DooD-only client - #1122

Merged
c-vigo merged 1 commit into
devfrom
feature/1106-podman-dood-client
Jul 15, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/1106-podman-dood-client

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

The image shipped podman's full local runtime for the retired podman-in-podman
sidecar model. Everything the scaffold actually does is Docker-out-of-Docker
against the host's rootless podman socket (initialize.sh mounts it as
/var/run/docker.sock), so the image now ships a client-only podman:
pkgs.podman.override with the helper inputs (crun, conmon, netavark,
passt, aardvark-dns, fuse-overlayfs, runc) stubbed and
extraRuntimes = []. catatonit stays (tiny; keeps the installPhase glob
non-empty). The docker → podman shim is retained and repointed at the client
build so it cannot silently re-pull the full runtime.

Scope guard: the swap is image-only — devTools (the SSoT) still ships the
full runtime, so dev-shell users keep daemonless podman run on real hosts.

Contract: in-container isolated (nested) container execution is removed —
declared non-contract in #1103 (semver:minor).

Honest size correction

Net closure reduction is ~67 MiB, not the epic's ~254 MiB estimate. The
estimate assumed dropping podman entirely; keeping the client binary (~54 MiB)
and systemd (rpath-linked into podman; systemdMinimal breaks podman logs
per the nixpkgs pin) accounts for the difference. The strategic goal is fully
met regardless: criu is gone, which removes one of the four anchors of the
redundant CPython 3.13 interpreter (unblocks #1107). Changelog and flake comment
carry the corrected figure. Epic table will be updated.

Evidence

  • Closure: 2,293,215,224 → 2,222,999,680 bytes (−67 MiB, 424 → 408 paths)
  • grep -E 'crun|criu|conmon|netavark|passt|libkrun|aardvark|fuse-overlayfs|runc-'
    over the new closure → empty (verified independently, including gvproxy,
    which the pin already excludes on this platform)
  • podman --version → podman version 5.8.2; bash/zsh/fish completions present
  • No test changes needed: test_image.py asserts only client-level behavior
    (podman --version, docker shim); no test asserts in-image runtime helpers
  • .vulnixignore: no stranded entries (the podman CVE entry stays valid —
    client still ships; systemd-transitive entries persist since systemd stays)
  • Full hook suite green (prek run --all-files, exit 0)
  • .typos.toml: allowlist passt (real package name)

Part of epic #1103 (sub-issue 3/5).

Closes #1106

The image shipped the full local podman runtime (crun, criu, conmon,
netavark, rootless-networking/networking helpers, libkrun/libkrunfw,
aardvark-dns, fuse-overlayfs, runc) solely to run isolated containers
in-container -- the retired podman-in-podman sidecar model, declared
non-contract in #1103. All remaining usage is Docker-out-of-Docker
against the host's rootless podman socket, where podman is a thin
client.

Swap the image's podman for a client-only build: .override the helper
inputs with an empty stub and drop extraRuntimes, keeping the podman
binary, --version, and completions. Scope the swap to imageTools (filter
the full podman out of the devTools SSoT and add the client) so the
dev-shell keeps its daemonless runtime unchanged. Point the
docker->podman shim at the client so it cannot re-pull the full runtime.

Drops ~67 MiB of uncompressed image closure; systemd stays (buildInput
linked into the podman binary). Allowlist the removed helper's package
name in the typos config.

Refs: #1106
@c-vigo
c-vigo force-pushed the feature/1106-podman-dood-client branch from f59de17 to 4ea0e2f Compare July 15, 2026 13:18
@c-vigo
c-vigo merged commit 946bb1e into dev Jul 15, 2026
15 checks passed
@c-vigo
c-vigo deleted the feature/1106-podman-dood-client branch July 15, 2026 13:26
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