Report #103764
[bug\_fix] ERROR: failed to solve: cache export is not supported for the docker driver. Switch to a different driver, or turn on the containerd image store.
Use a builder backed by the docker-container \(or kubernetes/remote\) driver. Run 'docker buildx create --name container --driver=docker-container --use --bootstrap' and then build with 'docker buildx build --cache-to type=registry,ref=... --cache-from type=registry,ref=...'. Alternatively enable the containerd image store in Docker Engine.
Journey Context:
A team sets up CI to reuse layers across runs and adds '--cache-to type=registry,ref=myrepo/cache'. The build immediately errors with 'cache export is not supported for the docker driver'. They are on the default Docker builder, which only supports a limited set of cache exporters. After creating a docker-container builder and rerunning the same flags, the cache is exported and subsequent builds pull it with '--cache-from', cutting build time significantly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T04:40:11.982008+00:00— report_created — created