【问题标题】:Docker Hub - Automated Build failed, but local build on my raspberry runs without problemsDocker Hub - 自动构建失败,但我的树莓派上的本地构建运行没有问题
【发布时间】:2020-02-17 16:23:44
【问题描述】:

我在 docker hub 有一个自动 docker 构建,但它在本地运行时失败(在我的 raspberry4 上)

日志是here,这里有文字:

Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
BuildTime: 2018-08-30T18:42:30.000000000+00:00
ApiVersion: 1.37
Platform: {u'Name': u''}
Version: 18.03.1-ee-3
MinAPIVersion: 1.12
GitCommit: b9a5c95
Os: linux
GoVersion: go1.10.2
Starting build of index.docker.io/jiwidi/jupyter-lab-rpi:latest...
Step 1/22 : FROM resin/raspberrypi3-python:3.6
---> 97f0dfa04606
Step 2/22 : MAINTAINER 
---> Running in e83c3b081120
Removing intermediate container e83c3b081120
---> 231f400a33d1
Step 3/22 : WORKDIR /root
Removing intermediate container 94b752c9953c
---> adc8cb2817d2
Step 4/22 : RUN apt-get update && apt-get install -y libncurses5-dev libzmq-dev libfreetype6-dev libpng-dev
---> Running in ded49f1ec6dd
[91mstandard_init_linux.go:190: exec user process caused "exec format error"
[0m
Removing intermediate container ded49f1ec6dd
The command '/bin/sh -c apt-get update && apt-get install -y libncurses5-dev libzmq-dev libfreetype6-dev libpng-dev' returned a non-zero code: 1

失败的那一行没有提供太多反馈:

命令 '/bin/sh -c apt-get update' 返回一个非零代码:1`

我已将它与我的 GitHub 存储库链接,您可以在其中找到 Dockerfile

这可能是因为我的映像是在 ARM 架构中构建的,而 docker-hub 运行 x86 吗?

【问题讨论】:

    标签: docker raspberry-pi dockerhub


    【解决方案1】:

    您好日志链接不起作用,您是否尝试过分隔命令?

    这样才能知道什么是失败的?

    RUN apt-get update && apt-get install -y libncurses5-dev 
    RUN apt-get update && apt-get install -y libzmq-dev
    RUN apt-get update && apt-get install -y libfreetype6-dev 
    RUN apt-get update && apt-get install -y libpng-dev
    

    【讨论】:

    • 嘿!刚刚尝试过,但在The command '/bin/sh -c apt-get update' returned a non-zero code: 1 失败了
    • 您是否尝试过替换已弃用的图像树脂/raspberrypi3-python:3.6?
    • 我刚刚尝试使用较新的图像(仅几天),但仍然发生相同的错误,它在 sudo apt-get update 时失败。它仍然在本地运行良好。新的 dockerfile:github.com/jiwidi/jupyter-lab-docker-rpi/blob/…
    • 在 macos catalina 10.15.3 上构建良好
    • 是的,它在本地运行正常,但在我通过将我的图像链接到 github 存储库设置的 docker-hub 自动构建上失败。我不明白为什么
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-24
    • 1970-01-01
    • 2019-04-06
    相关资源
    最近更新 更多