You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @matheusfd3! Thanks for reporting this issue. I've just tested the command on both linux and windows with Docker Desktop and it seems to be working correctly.
The error you're getting suggests that Docker can't find the Dockerfile in your current directory:
ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
This typically occurs in two common scenarios:
The command is being executed from a directory that doesn't contain the Dockerfile
The Dockerfile has a different name (e.g., dockerfile in lowercase)
In the main branch the Dockerfile file name is correct so to resolve this, please verify:
That you're running the command from the root directory of the project
That the file is named exactly Dockerfile (case-sensitive)
If your Dockerfile has a different name, you can specify it using the -f flag:
command:
docker buildx build --platform linux/amd64,linux/arm64 -t readme-ai --push .
out:
matheus in ~ took 16,4s ➜ docker buildx build --platform linux/amd64,linux/arm64 -t readme-ai --push . [+] Building 0.1s (1/1) FINISHED docker:desktop-linux => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2B 0.0s ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
The text was updated successfully, but these errors were encountered: