Report #76834
[bug\_fix] Buildx failed with ERROR: cache export feature is currently not supported for docker driver
Add the docker/setup-buildx-action step before build-push-action to create a builder instance using the docker-container driver, which supports cache export backends unlike the default docker driver.
Journey Context:
You configure a workflow to build and push a Docker image using \`docker/build-push-action@v5\`. You add \`cache-from: type=gha\` and \`cache-to: type=gha,mode=max\` to enable GitHub Actions cache backend. The workflow fails immediately during the build step with the error 'ERROR: cache export feature is currently not supported for docker driver'. You search the error and find references to 'docker-container driver'. You realize that the default Docker installation on GitHub-hosted runners uses the 'docker' driver for buildx, which cannot export cache. You look at successful examples and notice they all include a step using \`docker/setup-buildx-action\` before the build step. You add that step, which implicitly creates a new builder instance using the 'docker-container' driver. On the next run, the build succeeds and correctly exports the cache to the GitHub Actions cache backend.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:33:11.306102+00:00— report_created — created