Hello,
I am using docker 1.12.1 on Ubuntu and am unable to add any files to the image. Neither COPY nor ADD work and give me the same useless single error making it difficult to figure out what the problem is. The contents of the docker file is the following two lines:
FROM centos:7.1.1503
ADD test /tmp
Here is the sequence of commands being run to test the situation:
root@ubuntu:/home/test/workdir# docker build - < DockerFile
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM centos:7.1.1503
—> 285396d0a019
Step 2 : ADD test /tmp
lstat test: no such file or directory
root@ubuntu:/home/test/workdir# touch test
root@ubuntu:/home/test/workdir# docker build - < DockerFile
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM centos:7.1.1503
—> 285396d0a019
Step 2 : ADD test /tmp
lstat test: no such file or directory
I have also tried the following to replace the ADD line above but I get the same response indicating that the command needs far better error output to make it at all user friendly:
ADD test /tmp
ADD test /tmp/test
ADD test /
COPY test /tmp
COPY test /tmp/test
COPY test /
I have also tried changing the permissions on the file to 777 with no luck as well as changing the owner of the file to the current user even though I am running the tool as root.
Unfortunately, the error is always the same giving no indication as to the source of the problem.
Any suggestions on how to debug and any timeline on fixing this problem which has been around for eons.
Thanks,
Jason