Repository navigation
Description
Description
The image ships the full podman local runtime — crun, criu, conmon,
netavark, passt, libkrun/libkrunfw, aardvark-dns, fuse-overlayfs,
runc, plus systemd. Marginal cost (measured on .#devkitImageEnv):
~254 MiB across 62 paths.
The original justification — shipping heavy toolchains as sidecars (e.g.
geant4) via podman-in-podman — has been retired. Everything that remains is
Docker-out-of-Docker (DooD) against the host socket:
- the consumer scaffold itself:
assets/workspace/.devcontainer/scripts/initialize.sh:94-123(runs
host-side) discovers the host's rootless podman socket and mounts it as
/var/run/docker.sock;devcontainer.json/docker-compose.ymlset
DOCKER_HOST=unix:///var/run/docker.sock; - the
docker→podmanshim,flake.nix:1043-1055, honoringDOCKER_HOST; - the test harness,
tests/README.md:10— "DooD via podman socket → host's
podman daemon"; - every
podman build/load/taginjustfile*and CI
(.github/workflows/nix-image.yml) runs host-side.
The full runtime is only needed to run isolated containers inside the
container (true DinD) — the retired sidecar use case. With DooD, podman build/run forwards to the host socket; the container is a thin client.
Proposed mechanism
Ship a client-only podman. Note: this pin has no podman-remote
attribute, and the wrapper's helper set is hardcoded
(passthru.helpersBin in pkgs/by-name/po/podman/package.nix: gvproxy,
aardvark-dns, netavark, passt, conmon, crun; extraRuntimes only adds).
Implementation options, to be settled in the PR:
podman.overridereplacing the helper inputs (crun/conmon/netavark/passt/
aardvark-dns/gvproxy/fuse-overlayfs/runc) with an emptysymlinkJoinor
equivalent stubs, keeping the bare client binary + shell completions;overrideAttrson the wrapper to drop the helpers PATH suffix.
Keep the docker→podman shim as is (it execs the client, which honors
DOCKER_HOST).
Side effect: removes criu — one of the four anchors of the redundant
CPython 3.13 interpreter (see that sub-issue).
Risk / contract
- Loses in-container isolated container execution (nested/local runtime).
Per the epic's contract note this was never part of the image contract (the
scaffold is DooD-wired out of the box) →semver:minor, with the epic as
the declaration of record. - Check before landing: audit
tests/,docs/CONTAINER_SECURITY.md, and
consumer scaffolds for anything invokingpodman run/buildwithout a
host socket present.
Verification
nix path-info -Sh .#devkitImageEnvdrops ~254 MiB; crun/criu/conmon/
netavark/passt/libkrun*/aardvark-dns/fuse-overlayfs/runc/systemd gone.- In the built image with the host socket mounted:
docker buildand
podman buildsucceed against the host socket; the DooD test path passes. podman --versionstill works with no socket (client present, graceful
error on daemonless operations).
Notes
Part of the image-slimming epic. The overridden podman is not in
cache.nixos.org; first CI build pays, vig-os.cachix.org caches after.
Activity
refactor(image): replace podman runtime with DooD-only client
refactor(image): replace podman runtime with DooD-only client
refactor(image): replace podman runtime with DooD-only client
refactor(image): replace podman runtime with DooD-only client (#1122)
refactor(image): evict redundant CPython 3.13 via gitMinimal and unwr…
refactor(image): evict redundant CPython 3.13 via gitMinimal and unwr…
c-vigo commentedon Jul 15, 2026
Implemented and merged to dev in #1122 (−67 MiB measured; estimate corrected on the epic — criu anchor removed as intended).
chore: release 1.3.0 (#265)
chore: release 1.3.0 (#1138)