本文介绍了在Docker Hub中是否可以为Arm Image构建自动化构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Docker Hub网站上是否可以为Arm Image构建自动化构建?

In Docker Hub website Is it possible to build an automated build for an Arm Image ?

我已经修改了现有的DockerFile以使用Arm基础映像,但是当它尝试使用exec format error运行apk命令时,它在下一行失败.因此,尽管为Arm构建了基础映像,但看起来Docker Hub仍在尝试像Intel一样构建.

I have modified my existing DockerFile to use an Arm base image, but it fails on the next line when it tries to run the apk command with exec format error. So it looks like Docker Hub is trying to build as Intel despite base image being built for Arm.

是否可以在Docker Hub网站上构建Arm映像?

Is it possible to build Arm image with Docker Hub website or not ?

如果不能,那么任何人都不能提供简洁的说明,说明如何通过我的Dockerfile构建Arm Image

If not can anyone provide succint instructions on how to build Arm Image from my Dockerfile either by

  • 从docker命令行使用我的(英特尔PC)
  • 从docker命令行使用我的(Intel Mac)
  • 使用QNAP TS131P集装箱站,(因为这是Arm本身,可能会更简单)

推荐答案

事实证明,使用QNAP相对容易,比我阅读过的帖子看起来要简单得多,我认为我的困惑是这些帖子是关于构建 Intel 机器上的em> Arm 版本.而且所有Arm的特定说明都是针对Raspberry Pi的,这有其自身的问题.

Turned out to be relatively easy using the QNAP, alot simpler than it seemed from the posts I had read, I think my confusion was these posts were about building Arm version on an Intel machine, which i didnt need to do. And all the Arm specific instructions were for Raspberry Pi which had its own problems.

  • 在DockerHub中创建了新的空存储库
  • 将我的DockerFile上载到我的Web服务器
  • ssh qnapserver
  • docker build DockerFileUrl
  • docker登录 DockerHubUsername DockerHubPassword
  • 泊坞窗图像(获取已构建图像的imageId)
  • docker标签 imageId DockerHubNameSpace / DockerHubRepository :latest
  • docker push DockerHubNameSpace / DockerHubRepository :latest
  • Created new empty repository in DockerHub
  • Uploaded my DockerFile to my webserver
  • ssh qnapserver
  • docker build DockerFileUrl
  • docker login DockerHubUsername DockerHubPassword
  • docker images (to get imageId of built image)
  • docker tag imageId DockerHubNameSpace/DockerHubRepository:latest
  • docker push DockerHubNameSpace/DockerHubRepository:latest

该推送有效,然后我可以使用 ContainerStation 从Docker Hub获取映像并在容器中运行.

The push worked, and I was then able to use ContainerStation to get the image from Docker Hub and run in a container.

这篇关于在Docker Hub中是否可以为Arm Image构建自动化构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 09:30