[英]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你可以使用这个图像它的作品
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.