0
尽管源文件存在于构建上下文中,dockerfile COPY命令仍然失败。Dockerfile在构建上下文中COPY/ADD文件失败
$ docker --version
Docker version 1.4.1, build 5bc2ff8/1.4.1
Dockerfile:
$ cat Dockerfile
FROM centos
COPY "test", "/"
指南内容:
$ ls -Al
total 4
-rw-rw-r-- 1 nottingham nottingham 29 Apr 1 14:21 Dockerfile
-rw-rw-r-- 1 nottingham nottingham 0 Apr 1 14:26 test
生成输出:使用COPY [SRC,DEST]形式,或当发生
$ docker build -t nottingham/test .
Sending build context to Docker daemon 2.56 kB
Sending build context to Docker daemon
Step 0 : FROM centos
---> 88f9454e60dd
Step 1 : COPY "test", "/"
INFO[0000] "test",: no such file or directory
类似的错误ADD命令。有任何想法吗?