Docker在第一行之后停止
我有一个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
:
$docker build . Sending build context to Docker daemon 2.048 kB Sending build context to Docker daemon Step 0 : FROM jpetazzo/dind EOF
我在Ubuntu 14.04上 :
$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
确实改变了事情。
编辑 :在错误期间创build的日志:
/var/log/upstart$ sudo cat docker.log INFO[0568] POST /v1.19/build?cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&memory=0&memswap=0&rm=1&t=
我试图通过使用你的Dockerfile
重新产生错误, 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守护程序在运行的主机上没有networking问题吗?
我正在使用像你一样的Docker服务器/客户端版本。