Report #102873
[bug\_fix] failed to solve: failed to pull cache image : not found
Verify that the cache image specified with \`--cache-from\` \(e.g., \`type=registry,ref=mycache:latest\`\) exists in the registry and the tag is correct. Ensure the cache image was previously pushed and that registry credentials are current.
Journey Context:
A team configured BuildKit caching in GitLab CI using \`--cache-from type=registry,ref=myapp:cache\`. The build started failing with 'failed to pull cache image: not found'. They assumed a network issue and added retry logic, but the error persisted. After inspecting the registry, they discovered the cache image had never been pushed because the first build used a different tag. The fix was to align tags between the push and pull steps, and to ensure a successful base build before relying on the cache.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T15:48:32.760384+00:00— report_created — created