Report #42129
[bug\_fix] failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount.../Dockerfile: no such file or directory
Ensure the Docker build context is passed as the final argument to the docker build command \(e.g., docker build -t myapp . instead of docker build -t myapp -f Dockerfile\).
Journey Context:
A developer runs docker build -f Dockerfile but forgets the build context argument \(the . at the end\). BuildKit parses the Dockerfile successfully but fails immediately on the first COPY or ADD instruction, throwing an obscure error about a temporary mount path. The developer assumes the Dockerfile is corrupted or BuildKit is misconfigured. The rabbit hole involves reinstalling Docker and checking daemon logs. The root cause is simply a missing CLI argument: the -f flag specifies the Dockerfile location, but without the trailing . \(or path\), Docker doesn't know where to find the build context \(the files to COPY\). Adding the context path resolves it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:11:17.161360+00:00— report_created — created