Skip to content

Feature: Docker — refresh the exemplar package #72

Description

@David-Noble-at-work

Epic: Lore Package Development (#74) · Plan of record: lore-package-development.md (Phase 1)

The package

packages/docker deploys Docker CE — daemon, CLI, containerd, buildx, and the compose
plugin — across Darwin, Linux, and Windows, with Deploy, Upgrade, and Decommission
workflows. It is already on the current contract (def install(package, phase), plan.*,
platform directories) from the binding-unification work (#21, 2026-02-22); this feature
brings it to today's bar, re-proves it against the CLI at HEAD, and restructures it toward
the plan's Requirement 4 (three variants, no distro splits).

Source materials: Install-Docker and Tools/Debian/Initialize-Debian in the personal
repo (harvested — Install-Docker is Debian-family only and deliberately omits repo setup,
which lives in Initialize-Debian), the existing registry package, and the primary sources
below. Tribal knowledge verified against docs.docker.com on 2026-08-22.

Scope

  1. Re-validate against the current CLI: lore manifest validate docker, then per-platform
    lore manifest test docker — the CLI has moved ~6 months since the package was touched.
  2. Version pin 28.0.1 → current (Engine is 29.x as of 2026-08 — a full major
    behind); re-verify winget/choco/apt/dnf signature IDs.
  3. Implement the prepare-phase TODO stubs — plan.net.download and plan.file.write
    exist in the current contract.
  4. Structure per Requirement 4: unify into Linux/ everything unifiable now (conflict
    union with installed-guards, install set, hardware verify); distro directories remain
    only for vendor-repo registration until the plan.package.repository(...) primitive
    lands in devlore-cli.
  5. Bring the README to the plan's Requirement 1 standard (Rulings section; 1:1
    script-header mirror).
  6. Registry PR with three-platform automated testing.

Tribal knowledge (verified 2026-08-22)

  1. Five packages, not one: docker-ce, docker-ce-cli, containerd.io,
    docker-buildx-plugin, docker-compose-plugin — plus lshw for hardware detection in
    the verify phase. Identical across Linux families.
  2. Conflicting packages must be removed first, guarded by plan.package.installed,
    followed by autoremove. Debian family (per primary source): docker.io,
    docker-compose, docker-compose-v2, docker-doc, docker-buildx,
    podman-docker, containerd, runc. Fedora family: docker, docker-client,
    docker-client-latest, docker-common, docker-latest, docker-latest-logrotate,
    docker-logrotate, docker-selinux, docker-engine-selinux, docker-engine.
    The registry's extra Fedora entries (podman, runc) survive only as a recorded
    ruling, not as "what Docker says".
  3. Vendor repository registration is the irreducible distro split: apt wants a keyring
    (/etc/apt/keyrings/docker.asc) plus a deb822 .sources file with URL path,
    Suites: codename, and Architectures: resolved from /etc/os-release — the one-line
    docker.list is outdated; dnf wants dnf5
    config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo
    (supported Fedora releases: 43/44). Initialize-Debian already writes the deb822 format.
  4. Licensing cliff: Linux gets Docker CE (Apache-2.0); Darwin and Windows get Docker
    Desktop — free only under 250 employees AND under $10M revenue; government entities
    always require a subscription
    , regardless of size.
  5. Rootless mode (feature rootless, Linux): needs uidmap and dbus-user-session.
  6. ODROID-C4/C5 need cgroup v1 (systemd.unified_cgroup_hierarchy=0). Full mechanism
    from Install-Docker: detect via lshw -json product, find boot.ini under
    /media/boot, check bootargs; when absent, emit manual remediation instructions
    (backup, append, reboot, re-verify) and exit cleanly. Raspberry Pi 5 is known-good;
    unknown products warn, never fail.
  7. Rosetta 2 (Darwin): optional-but-recommended, no longer required — some CLI tools
    still need it under Darwin/AMD64 (softwareupdate --install-rosetta).
  8. Windows prerequisites: WSL 2.1.5+ must pre-exist (wsl --version); minimums
    Windows 10 22H2 / 11 23H2, 8 GB RAM, SLAT, virtualization enabled, LanmanServer
    service enabled and Automatic. ARM64 is Early Access, WSL 2 backend only, and
    Windows containers are unsupported there.
    Official channels are the installer exe
    and Microsoft Store; winget's Docker.DockerDesktop (and Homebrew's cask on Mac) are
    community-maintained, not official.
  9. Verification is end-to-end: docker run hello-world (the official check), plus
    systemctl enable --now docker on Linux — stronger than a --version pattern.
  10. Decommission is two-speed: default preserves images/containers/volumes; the
    purge-data feature removes them. Never conflate the two.

Evidence of completion

  • lore manifest validate docker and per-platform lore manifest test docker pass at CLI HEAD
  • README tribal-knowledge sections match the scripts' TRIBAL KNOWLEDGE: headers 1:1,
    Rulings section included
  • Registry PR merged with green macOS/Linux/Windows runs

Primary sources (verified 2026-08-22)

Ubuntu install ·
Fedora install ·
Mac install ·
Windows install ·
Pricing FAQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions