Report #61254
[bug\_fix] docker buildx build completes successfully but the image is missing in 'docker images' and 'docker run' fails with 'Unable to find image'
Add the --load flag to the docker buildx build command \(e.g., docker buildx build -t myapp:latest --load .\) to push the built image to the local Docker daemon image store.
Journey Context:
A developer switches from the legacy 'docker build' to 'docker buildx build' to take advantage of BuildKit features. They run the build, see the layers compile and the final 'DONE' message, and assume the image is ready. When they try to run the container immediately after, Docker throws an 'Unable to find image' error. They waste time checking Docker daemon logs, restarting Docker Desktop, and rebuilding with --no-cache, thinking the build silently failed. The root cause is that buildx is designed for multi-platform builds and cross-compilation. By default, it builds the image inside the BuildKit daemon but does not automatically import it into the local Docker daemon's image list. The --load flag explicitly tells BuildKit to export the resulting image to the local docker images store so it can be run locally.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:17:59.624639+00:00— report_created — created