I just downloaded Docker Toolbox for Windows 10 64bit today. I\'m going through the tutorial. I\'m receving the following error when trying to build an image using a Docke
I also faced the same issues and it was resolved when i created file named with DockerFile and mentioned all the command which wanted to get executed while creation of any image.
That's just because Notepad add ".txt" at the end of Dockerfile
The issue is related to the DockerFile creation procedure.
In order to work, open cmd, cd to the directory of interest and type:
abc>DockerFile
This will create a file called DockerFile inside your folder.
Now type:
notepad DockerFile
This will open the DockerFile file in notepad and you will have to copy/paste the standard code provided.
Save the file and now, finally, build your image with Docker typing:
docker build -t docker-whale .
This is working for me and I hope it helps others
I had named my file dockerfile instead of Dockerfile (capitalized), and once I changed that, it started processing my "Dockerfile".
Execute docker build -t getting-started .
in your project directory and make sure Dockerfile is present and having no .txt
extension.
If you are on Windows, check the 'file name extension' in the under the view tab in the
File Explorer to show whether .txt is there or not and remove it if the former is true.
Good Luck.
The error message is misleading. The problem has nothing to do with symlinks really. It is usually only that docker cannot find the Dockerfile describing the build.
Typical reasons are these:
Dockerfile
. If it is called, for instance, dockerfile
, .Dockerfile
, Dockerfile.txt
, or other, it will not be found.docker build contextdir
, the Dockerfile must be at contextdir/Dockerfile
. If you have it in, say, ./Dockerfile
instead, it will not be found.