Docker: unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx

后端 未结 30 2250
野性不改
野性不改 2020-11-29 21:23

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

相关标签:
30条回答
  • 2020-11-29 21:58

    The name of the file should be Dockerfile and not .Dockerfile. The file should not have any extension.

    0 讨论(0)
  • 2020-11-29 21:58

    On Mac it works for below command. (hope your .Dockerfile is in your root directory).

    docker build -t docker-whale -f .Dockerfile .
    
    0 讨论(0)
  • 2020-11-29 22:01

    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.

    0 讨论(0)
  • 2020-11-29 22:03

    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.

    0 讨论(0)
  • 2020-11-29 22:04

    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.

    0 讨论(0)
  • 2020-11-29 22:05

    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

    0 讨论(0)
提交回复
热议问题