简体   繁体   English

Docker(Apple Silicon/M1 预览版)sonarqube “清单列表条目中没有与 linux/arm64/v8 匹配的清单”

[英]Docker (Apple Silicon/M1 Preview) sonarqube “no matching manifest for linux/arm64/v8 in the manifest list entries”

Here is my YAML file.这是我的 YAML 文件。

file name - docker-compose.mysonar.yml文件名 - docker-compose.mysonar.yml

version: '2'
services:
    my-sonar:
        image: sonarqube:7.1
        ports:
            - 9001:9000

when I run docker-compose -f docker-compose.mysonar.yml up it throws the error - “no matching manifest for linux/arm64/v8 in the manifest list entries”当我运行docker-compose -f docker-compose.mysonar.yml 时它抛出错误 - “在清单列表条目中没有匹配的 linux/arm64/v8 清单”

How do I fix this?我该如何解决?

Just add this platform in the docker-compose.yml file as shown below只需在 docker-compose.yml 文件中添加此平台,如下所示

platform: linux/amd64

docker-compose.yml docker-compose.yml

version: '2'

services:
  my-sonar:
      image: sonarqube:7.1
      platform: linux/amd64
      ports:
        - 9001:9000

--platform linux/x86_64 --平台 linux/x86_64

Use this flag above for the commands where things are not working.使用上面的这个标志来处理不工作的命令。

For eg.例如。

docker run --platform linux/x86_64 sonarqube 

Hope it helps:)希望能帮助到你:)

All of the images in that repo have a single manifest in the manifest list for linux/amd64 .该存储库中的所有图像在linux/amd64的清单列表中都有一个清单。 You can try pulling the sha for that directly to see if it runs with virtualization.您可以尝试直接拉动 sha 以查看它是否与虚拟化一起运行。 That tag for 7.1 is currently: 7.1 的标签当前是:

sonarqube@sha256:e36dcf59f4da62694a6e8265e6c56ca18596f59880f4cb6dd2c9efc6e0022405

Otherwise you could try to build the image for your platform, however the upstream image seems to indicate this is not supported and that they won't fix it for the M1's either .否则,您可以尝试为您的平台构建映像,但是上游映像似乎表明这不受支持,并且他们不会为 M1 修复它

Apple M1 chips are ARM based architecture. Apple M1 芯片是基于 ARM 的架构。

You can build sonarqube image from Sonarqube Dockerfile您可以从 Sonarqube Dockerfile构建 sonarqube 映像

OR或者

You can use ARM based sonarqube docker image which I built recently on AWS ARM based server.您可以使用基于 ARM 的 sonarqube docker 图像,该图像是我最近在基于 AWS Z47F45E65244C17EC9EFAZ87D 的服务器上构建的。

version: '2'
services:
    my-sonar:
        image: koolwithk/sonarqube-arm:9.2.4-community
        ports:
            - 9001:9000

You can use this image it's works你可以使用这个图像它的作品

mwizner/sonarqube mwizner/声纳库

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker(Apple Silicon/M1 Preview)MySQL“清单条目中没有与 linux/arm64/v8 匹配的清单” - Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries" Docker - 清单列表条目中没有与 linux/arm64/v8 匹配的清单 - Ubuntu 22.04/arm64/v8 - Docker - No matching manifest for linux/arm64/v8 in the manifest list entries - Ubuntu 22.04/arm64/v8 docker:在 M1 Mac 上通过 Docker 安装 ArangoDB 时没有与 linux/arm64/v8 匹配的清单 - docker: no matching manifest for linux/arm64/v8 while installing ArangoDB via Docker on M1 Mac Apple M1 docker 映像使用什么架构:arm/v5、arm/v7、arm64/v8? - What architecture to use for Apple M1 docker image: arm/v5, arm/v7, arm64/v8? Hyperledger Fabric 链码安装失败 - 没有与 linux/arm64/v8 匹配的清单 - Hyperledger Fabric Chaincode Installation Failed - no matching manifest for linux/arm64/v8 M1 docker 预览和 keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)' 问题 - M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)' Issue 错误:服务“mysql”无法构建:清单列表条目中没有与 linux/arm/v7 匹配的清单 - ERROR: Service 'mysql' failed to build: no matching manifest for linux/arm/v7 in the manifest list entries 如何切换 Docker 模式(Linux/Windows)? 清单列表条目中没有匹配的 linux/amd64 清单 - How to switch Docker mode(Linux/Windows)? no matching manifest for linux/amd64 in the manifest list entries Docker:“清单列表条目中没有与 windows/amd64 匹配的清单” - Docker: "no matching manifest for windows/amd64 in the manifest list entries" 在 arm64 架构(Apple M1)上运行 docker amd64 图像而不重建 - Running docker amd64 images on arm64 architecture (Apple M1) without rebuilding
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM