Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM php:5.6.0-apache
—> 6ef297db3f99
Step 2/2 : COPY D:/www/ /var/www/html/
COPY failed: stat /var/lib/docker/tmp/docker-builder727885186/D:/www: no such file or directory
The path must be inside the context of the build; you cannot COPY …/something /something, because the first step of a docker build is to send the context directory (and subdirectories) to the docker daemon.
ADD obeys the same rules. Also it automatically unpacks archives, which can be confusing; usually you want COPY. In any case you can never reach outside the directory tree that contains the Dockerfile, and using absolute paths like this definitely doesn’t work.