fix/up: take the devcontainer platform key from the Docker daemon's architecture #106
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/up-daemon-arch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #103. The devcontainer runtime derived its harness pool platform key from the host GOARCH, a stand-in the design section 5.1 TODO flagged as wrong for a remote DOCKER_HOST whose daemon architecture differs from the client. wraptool up now asks the daemon with docker version and the Server.Arch format under a five second timeout, maps amd64, x86_64, arm64 and aarch64 onto the glibc platform keys through a new pool.PlatformKeyForArch that HostPlatformKey also uses, and falls back to the host key with a notice naming the cause when the daemon cannot be asked or reports an unsupported architecture. A daemon architecture that differs from the host prints a one line notice naming the chosen platform, same architecture prints nothing. The selection logic is a pure function with a table test, the probe sits behind a stub seam like hasDocker, and a mutation forcing the probed arch to amd64 fails two tests. Docker Sandboxes and the guix runtime are unchanged, both always share the local architecture, a comment in sbxcontainer.go says so. The issue's note about init devcontainer printing a platform specific mount path did not hold, that snippet uses the platform agnostic runtime dir, so nothing changed there. Both TODO comments in up.go are gone, docs/devcontainers.qmd gains a paragraph, CHANGELOG Fixed bullet. 🤖 Generated with Claude Code