unable to evaluate symlinks in Dockerfile

2019-09-21 02:44发布

问题:

When I input

docker build -t tutum/apache-php .

in docker, it will output the error

unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\User\gao\Dockerfile: The system cannot find the file specified.

What does this mean? Any advice is helpful. Thank you.

回答1:

It means your Dockerfile is missing or incorrectly named. If you want to build a differently named Dockerfile, you can run docker build -t tutum/apache-php -f ./Dockerfile.dev .

You also appear to be trying to build in a namespace that is in use (tutum) which is strongly recommended against. If you want their image, just run a docker pull tutum/apache-php.



标签: php docker