Docker自动生成导致意外的失败
我正在尝试使用docker创build一个自动构build。 我所做的是将docker中心的位桶回购链接和试图build立。 构build的状态是意想不到的失败。 另外,我看到下面的失败消息:
{“错误”:“图片取决于未经授权的父母”}
有趣的是,日志说build立成功。
失败消息
[Failure instance: Traceback: <type 'exceptions.RuntimeError'>: HTTP code 400 while uploading metadata: {"error": "Image depends on an unauthorized parent"} /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:382:callback /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:490:_startRunCallbacks /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:1155:gotResult --- <exception caught here> --- /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:1097:_inlineCallbacks /usr/local/lib/python2.7/dist- packages/twisted/python/failure.py:389:throwExceptionIntoGenerator /app/builder.py:160:execute_job /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks /app/shared/tx/docker.py:295:on_done ]
Dockerfile
FROM ubuntu # make sure the package repository is up to date RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update # Install vnc, xvfb in order to create a 'fake' display and firefox RUN apt-get install -y x11vnc xvfb firefox RUN mkdir /.vnc # Setup a password RUN x11vnc -storepasswd 1234 ~/.vnc/passwd # Autostart firefox (might not be the best way, but it does the trick) RUN bash -c 'echo "firefox" >> /.bashrc' EXPOSE 5900 CMD ["x11vnc", "-forever", "-usepw", "-create"]
日志
Step 0 : FROM ubuntu Pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/ e314931015bd .... .... Removing intermediate container c8e48d27a271 Step 8 : CMD ["x11vnc", "-forever", "-usepw", "-create"] ---> Running in d9319762cb0f ---> bd7eb37a7f78 Removing intermediate container d9319762cb0f Successfully built bd7eb37a7f78
更新:问题已修复。
我刚刚得到了Docker支持团队的答复。 这是一个他们已经在调查的问题。
不幸的是,除了等待之外,没有什么可以做的。
- Docker依赖问题:Rake中止! LoadError:无法加载这样的文件 – sqlite3 / sqlite3_native
- 如果另一个服务状态是0(成功),Docker-compose运行服务
- 链自动构build在同一个Docker Hub存储库中
- docker工人:无法纠正问题,你已经打破了软件包
- 在docker 1.10之后有没有办法从中间层访问文件?
- 如何在使用Docker Compose时有效地重build项目?
- 使用apt-get build depm最小化Docker镜像
- 我们是否可以创build多个Windows容器,可以将其用作单个Windows Server VM的VSTS构build代理?
- Docker构build冻结从apt安装软件包