开发者社区 > 云原生 > 容器服务 > 正文

阿里云容器镜像服务,构建arm64的容器报错

阿里云容器镜像服务,构建arm64的容器报错

docker image building is started ...
[ fetch stage begin.]
fetch dockerfile and context
Note: checking out 'origin/master'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b <new-branch-name>

HEAD is now at b53462c Update README.md
[fetch successfully.]
==========================================
[docker version.]
Client:
Version: 17.06.1-ce
API version: 1.30
Go version: go1.8.3
Git commit: 874a737
Built: Thu Aug 17 22:53:49 2017
OS/Arch: linux/amd64

Server:
Version: 17.06.1-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 874a737
Built: Thu Aug 17 23:01:50 2017
OS/Arch: linux/amd64
Experimental: false
==========================================
[docker build stage begin.]
Sending build context to Docker daemon 5.12kB
Step 1/36 : FROM arm64v8/openjdk:8
8: Pulling from arm64v8/openjdk
no matching manifest for linux/amd64 in the manifest list entries
{"exitCode":8, "message":"docker build failed or timeout "}

展开
收起
大黄蜂coder 2020-05-08 14:27:00 2971 0
2 条回答
写回答
取消 提交回答
  • hello,您这边可以编译ARM64的镜像了么?我这边编译时报错如下,想问下怎么改才能编译ARM64的镜像。

    [docker version.] Client: Version: 17.06.1-ce API version: 1.30 Go version: go1.8.3 Git commit: 874a737 Built: Thu Aug 17 22:53:49 2017 OS/Arch: linux/amd64

    Server: Version: 17.06.1-ce API version: 1.30 (minimum version 1.12) Go version: go1.8.3 Git commit: 874a737 Built: Thu Aug 17 23:01:50 2017 OS/Arch: linux/amd64 Experimental: false

    [docker build stage begin.] Sending build context to Docker daemon 2.048kB Step 1/2 : FROM centos@sha256:26255e69c5323b022338c61441c9adbed40ca86a6216ba98597cb24449841bc0 sha256:26255e69c5323b022338c61441c9adbed40ca86a6216ba98597cb24449841bc0: Pulling from library/centos 9f74aa7d9ab9: Pulling fs layer 9f74aa7d9ab9: Download complete 9f74aa7d9ab9: Pull complete Digest: sha256:26255e69c5323b022338c61441c9adbed40ca86a6216ba98597cb24449841bc0 Status: Downloaded newer image for centos@sha256:26255e69c5323b022338c61441c9adbed40ca86a6216ba98597cb24449841bc0 ---> 190630274c4b Step 2/2 : RUN yum update -y && yum install -y nc unzip wget which && yum clean all ---> Running in bd75c0bd15db standard_init_linux.go:187: exec user process caused "exec format error"

    2020-09-09 13:39:09
    赞同 展开评论 打赏
  • 精于基础,广于工具,熟于业务。

    网速不行,镜像拉不下来。改一下镜像获取策略吧

    2020-05-20 14:37:31
    赞同 展开评论 打赏

国内唯一 Forrester 公共云容器平台领导者象限。

相关产品

  • 容器镜像服务
  • 相关电子书

    更多
    基于ACK One和ACR构建CI/CD流水线最佳实践 立即下载
    《容器镜像服务企业版 (ACR EE)》 立即下载
    Serverless 开启应用上云新方式 立即下载