Dockerfile not found when building the getting-started image

Hello everyone,
I’m new to building a Docker container. I’m trying to build the example container from Part 1: Containerize an application | Docker Docs But when I get to this part it fails and I’m not sure why. The error message says “failed to read dockerfile: open Dockerfile: no such file or directory” and the logs say “[internal] load build definition from Dockerfile transferring 2/0 0.009” That’s it! First, I’m running Docker Desktop 4.41.2, Windows 11 Pro Insider Preview 10.0.26200.5603 (ge_release_upr) on a 13" Surface Laptop 4 AMD Ryzan 5 Surface Edition. 16GB ram and a 1TB WD Black SSD. I have Git and Visual Studio Code installed. A little history: I haven’t done any computer coding since high school but I do have a basic understanding of coding. I learned using an app most here might not even know of: it was called Logo programming on Apple computers. Man this makes me feel OLD. lol Anyways, I also learned to program my Ti80 calculator to play Blackjack. Not to install a pre-built app but to program it myself. I know it’s been 20+ years since then and I wanted to finally get back into some kind of programming but IDK. Maybe I’m wasting my time :confused:

Well, it seems the Dockerfile file is not found in the current directory.

Well that’s is what is weird about it since the instructions clearly state to create a dockerfile named Dockerfile in the directory of the getting-started-app folder which I did. That’s why I’m a little lost since I did everything the post stated but it still seems to fail.

If the error message says the file is missing, we have no reason to doubt that yet. Can you show the content of the folder? I assume the file is not exactly named as it should be, or it is not in the same folder but in a subfolder. These happened before.

You need to make sure the file is named exactly as “Dockerfile” and not “dockerfile” or “DockerFile” and without an extension. Windows could automatically add an extension but if you used vscode that should recognize it. If you have the vscode extension for Docker, the Dockerfile should also be recognized and vscode should use the whale icon for that file if I remember correctly. But I’m not 100% sure about that.

Note: I edited your post and the title. Please, always give a descriptive title to your topic. Otherwise you are risking that fewer people will click on it. The forum engine also uses texts below shard images as the description of the image, making it a little bit dimmer. So I added an empty line after the image.