Report #88058
[bug\_fix] ERROR: cache export feature is currently not supported for docker driver or cache not being reused between builds
Add \`uses: docker/setup-buildx-action@v3\` before the build-push-action to create a BuildKit builder with the container driver that supports cache exporters.
Journey Context:
Developer configures a workflow using \`docker/build-push-action@v5\` to build and push to GHCR. They configure \`cache-from: type=gha\` and \`cache-to: type=gha,mode=max\` to utilize GitHub Actions cache for layer caching. The workflow runs but either fails with 'ERROR: cache export feature is currently not supported for docker driver' or appears to succeed but subsequent builds show no cache utilization \(all layers are rebuilt\). Developer investigates and learns that the default Docker builder uses the 'docker' driver which does not support cache exporters. The workflow is missing the setup-buildx-action step that creates a BuildKit builder using the 'docker-container' driver. After adding \`uses: docker/setup-buildx-action@v3\` before the build step, the cache export works correctly and subsequent builds reuse layers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:23:32.135012+00:00— report_created — created