Report #52023
[bug\_fix] ERROR: failed to solve: cache key not found when building for a different architecture
Ensure the base image has a manifest for the target architecture, and use --pull to force fetching the correct variant.
Journey Context:
A developer sets up a CI pipeline to build ARM64 images using docker buildx. The build fails immediately on the FROM statement with 'cache key not found'. They are confused because the image builds fine locally on their AMD64 machine. They try clearing the cache, but it persists. They inspect the base image and discover it only has an amd64 manifest. BuildKit tries to resolve the arm64 manifest to compute the cache key but fails since it doesn't exist in the registry. The fix is to switch to a base image that provides multi-arch manifests \(e.g., node:16-alpine instead of a custom single-arch image\) or use --pull. This works because BuildKit can now resolve and pull the specific architecture variant required for the build target.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:48:59.013151+00:00— report_created — created