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
The name of the file should be Dockerfile and not .Dockerfile. The file should not have any extension.
On Mac it works for below command. (hope your .Dockerfile is in your root directory).
docker build -t docker-whale -f .Dockerfile .
If you have mounted a second drive to an NTFS folder as a 'mounted volume' then you can get this issue.
Move you files to a drive location outside of the mounted volume.
To build Dockerfile save automated content in Dockerfile. not Dockerfile because while opening a file command:
$ notepad Dockerfile
(A text file is written so file cannot build)
To build file run:
$ notepad Dockerfile
and Now run:
$ docker build -t docker-whale .
Make sure you are in current directory of Dockerfile.
The error means that docker build is either using a PATH | URL that are incorrectly input or that the Dockerfile cannot be found in the current directory. Also, make sure that when running the command from an integrated terminal (e.g. bash inside your IDE or text editor) you have the admin permissions to do so.
Best if you can check the PATH from your terminal with pwd (in bash shell or dir if using a simple cli on windows) and copy the exact path where you want the image to be build.
docker build C:\windows\your_amazing_directory
docker build --help will also show you available options to use in case of malformed or illegal commands.
please check whether docker is running on your windows or not, I try to find the solution and then accidently checked and find the issue