Docker Community Forums

Share and learn in the Docker community.

Docker Desktop for Windows - ADD failed: CreateFile \\?\C:\ProgramData\Docker\tmp\docker-builder498891217\hello: The system cannot find the file specified. Anyone dealt with this error?

KINDLY HELP ME!!! Please let me know how to solve this issue!

Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:31 2019
OS/Arch: windows/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.24)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:28:48 2019
OS/Arch: windows/amd64
Experimental: true
I want to take the static binary named hello from my current directory and add it to the root directory of the image file using the ADD command but keep getting the error. Trying to build the image by invoking the docker build command which would go through the Dockerfile’s contents and generate the image.
I am creating a base image out of c++ hello program. I keep getting this error:
PS C:\Users\zmumin\MyDockerImage> docker build --tag hello .
Sending build context to Docker daemon 2.188MB
Step 1/3 : FROM scratch
—>
Step 2/3 : ADD ./hello .
ADD failed: CreateFile \?\C:\ProgramData\Docker\tmp\docker-builder498891217\hello: The system cannot find the file specified.

Dockerfile?

If you have
ADD ./hello .

Maybe try
ADD hello .
?