Docker在第一行后停止

时间:2015-08-06 20:38:40

标签: docker dockerfile

我有cpages

Dockerfile

运行它会给我一个FROM jpetazzo/dind ENV debian_frontend noninteractive RUN apt-get -y update RUN apt-get install -y supervisor COPY supervisor.conf /etc/supervisor.conf COPY wrapdocker.conf /etc/supervisor/conf.d/wrapdocker.conf CMD supervisord -c /etc/supervisor.conf

EOF

我在 Ubuntu 14.04

$docker build .
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon 
Step 0 : FROM jpetazzo/dind
EOF

有什么线索为什么会有$docker version Client version: 1.7.1 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 786b29d OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Go version (server): go1.4.2 Git commit (server): 786b29d OS/Arch (server): linux/amd64

我试图在另一个目录中重新复制该文件,它没有改变任何东西。将EOF更改为FROM jpetazzo/dind确实会改变一切。

修改: 错误期间创建的日志:

FROM ubuntu

1 个答案:

答案 0 :(得分:0)

我尝试使用Dockerfile但未成功重新产生错误:

$ docker build .
Sending build context to Docker daemon 4.608 kB
Sending build context to Docker daemon 
Step 0 : FROM jpetazzo/dind
 ---> e82a08f5b4e3
Step 1 : ENV debian_frontend noninteractive
 ---> Running in bb205a0e8238
 ---> e1e5993a94b7
Removing intermediate container bb205a0e8238
Step 2 : RUN apt-get -y update
 ---> Running in 1004dda4c147
Get:1 https://get.docker.com docker InRelease
Ign https://get.docker.com docker InRelease
Hit https://get.docker.com docker Release.gpg
Hit https://get.docker.com docker Release
...

您确定在Docker守护程序运行的主机上没有网络问题吗?

我使用的是与您相同的Docker服务器/客户端版本。