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

0 votes

I got the following error while trying to build an image using a dockerfile.

$ docker build -t docker-whale . unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\Users\Villanueva\Test\testdocker\Dockerfile: The system cannot find the file specified.
Aug 2, 2018 in Docker by Hannah
• 17,170 points
7,649 views

2 answers to this question.

0 votes

Just Remove the extension .txt from Dockerfile and run the command

docker build -t image-name 

It will work for sure.

answered Aug 2, 2018 by Kalgi
• 46,230 points
0 votes
Very cliche, but check if the Dockerfile is present in the current working directory.
answered Apr 22 by Umer
Haha! I cannot believe that was the issue. Thanks! It's funny how such tiny things make such big issues. I was stuck with it for days

Related Questions In Docker

0 votes
1 answer

Unable to switch filesystem to overlay in Docker in Ubuntu.

From the official docs: https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlayoverlay2-storage-driver To configure Docker ...READ MORE

answered Jul 18, 2018 in Docker by ajs3033
• 7,280 points
769 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,300 points
270 views
0 votes
1 answer

Docker unable to connect AWS EC2 cloud

Your command is not pointing to your ...READ MORE

answered Jul 16, 2018 in Docker by Kalgi
• 46,230 points
94 views
0 votes
1 answer

How to list containers in Docker

To show only running containers use the given command: docker ...READ MORE

answered Jul 20, 2018 in Docker by Kalgi
• 46,230 points
45 views