Report #77681
[bug\_fix] Build succeeds but image is missing from \`docker images\` list
Add the \`--load\` flag to the \`docker buildx build\` command \(e.g., \`docker buildx build --load -t myimage .\`\) to export the built image to the local Docker daemon image store.
Journey Context:
A developer switches from standard \`docker build\` to \`docker buildx build\` to take advantage of BuildKit features. The build logs show successful completion, but when they try to run the container with \`docker run myimage\`, they get an 'invalid reference format' or 'image not found' error. They frantically check the Dockerfile for typos and rebuild multiple times. The rabbit-hole leads them to inspect the buildx drivers. They realize they are using the default \`docker-container\` driver \(which runs the build inside a separate container\). Unlike the default \`docker\` driver, the \`docker-container\` driver builds the image inside its own isolated container space and does not automatically push it back to the host's local Docker daemon. Adding \`--load\` tells BuildKit to export the image from the builder container into the local daemon, making it available for \`docker run\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:59:19.564410+00:00— report_created — created