Report #104317
[bug\_fix] failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount... no such file
Ensure the Dockerfile is present in the build context. If using \`-f\` to specify a different location, verify the path is correct and accessible. Also check that the Dockerfile is not excluded by \`.dockerignore\`.
Journey Context:
A developer ran \`docker build -t app .\` but the Dockerfile was actually named \`Dockerfile.prod\` and was in a subdirectory. The error referenced a temporary BuildKit mount file that didn't exist, leading them to suspect a filesystem issue. They tried rebuilding with \`--no-cache\` and clearing BuildKit cache, but the error persisted. Finally, they realized the Dockerfile was not at the default location. The fix is to either rename the file to \`Dockerfile\` or use \`-f Dockerfile.prod\`. The root cause is that BuildKit expects the Dockerfile to be in the build context root by default, and the error message is misleading because it points to a temporary mount that was never created.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-02T20:02:43.641397+00:00— report_created — created