Docker Community Forums

Share and learn in the Docker community.

Error checking context: 'can't stat '

Expected behavior

Sending build context to docker daemon

Actual behavior

Error checking context: ‘can’t stat ‘\?\C:\Users\hemanth\AppData\Local\Application Data’’.

Okay, changing the file path to desktop solved the problem.

PS C:\Users\hemanth\desktop> docker build -t dockerfile .
Sending build context to Docker daemon 3.072 kB
Step 1/2 : FROM microsoft/iis
—> 211fecef1e6b
Step 2/2 : RUN echo “Hello World - from Dockerfile”> c:\inetpub\wwwroot\index.html
—> Running in 80eca40c0f7d
—> a809a8ea24d5
Removing intermediate container 80eca40c0f7d
Successfully built a809a8ea24d5

Changing the path to desktop solved the problem for me as well. Thanks hemanth