我可以通知QNAP我的Docker映像是Intel还是Arm [英] Can I inform QNAP if my Docker Image is Intel or Arm

查看:187
本文介绍了我可以通知QNAP我的Docker映像是Intel还是Arm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

QNAP ContainerStation 支持在 Docker Hub 上搜索Docker映像. QNAP ContainerStation的 Intel Arm 平台均受支持. 我有我的应用程序的Intel和Arm Image,如果同时显示用户搜索图像(宋体),但是当然只有Intel版本将在Intel QNAP上运行,而只有Arm版本将在Arm QNAP上运行.

QNAP ContainerStation supports searching for Docker images on Docker Hub. QNAP ContainerStation is supported on both their Intel and Arm platforms. I have an Intel and an Arm Image of my application, if user searches for image (songkong) both are displayed but of course only the Intel version will work on Intel QNAP and only Arm version will work on Arm QNAP.

如果QNAP仅列出有效的版本,则对客户会更好,因为QNAP并未明确说明其各种型号的CPU.我可以添加到Dockerfile中的任何内容,还是可以在DockerHub存储库中帮助QNAP做到这一点的任何内容?

It would be better for the customer if QNAP would just list the valid one, since QNAP dont make it very clear what the cpu is for their various models. Is there anything I can add to my Dockerfile, or anything I can within DockerHub repository to help QNAP do this ?

更新

似乎有某种方式可以创建支持多个平台的图像(Multi-Arch).我假设实际发生的情况是您创建了单独的映像,然后在它们周围放置了一些包装,然后Docker用户平台可以自动为其平台选择正确的版本.但是看不到我如何将Arm和Intel图像组合成一个MultiArch图像.

Seems there is someway to create an image that supports multiple platforms (Multi-Arch). I assume what actually happens is you create separate images and then put some wrapper around them, then Docker users platform can automtically pick the correct version for their platform. But cannot see how I combine my Arm and Intel images into a MultiArch Image.

推荐答案

如果您使用的是旧版本的Docker,则必须使用清单工具.存储库的README.md中有一个小教程,或者您也可以关注

If you're using an old version of Docker you have to use manifest-tool. There is a small tutorial in the README.md of the repository or you can also follow this one.

如果您的Docker版本足够新,则可以直接使用docker manifest命令.

If your Docker version is recent enough, you can directly use the docker manifest command.

然后您可以通过以下方式使用它:

Then you can use it that way:

docker manifest create name/app:latest name/app:amd64 name/app:arm64
docker manifest push name/app:latest

希望有帮助.

这篇关于我可以通知QNAP我的Docker映像是Intel还是Arm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆