Docker running `linux/amd64` image in apple M1 and getting qemu: uncaught target signal 11 (Segmentation fault) - core dumped

vrn*_*mar 8 linux docker apple-m1

我正在使用 Apple M1 系统在 docker 上运行linux/amd64图像。qemu: uncaught target signal 11 (Segmentation fault) - core dumped在 docker 中运行测试时出现此错误。我用 toplatform: linux/amd64来指定平台。我发现了与此相关的 github 问题https://github.com/docker/for-mac/issues/5123

  • docker是用来qemu运行的linux/amd64 image on Apple M1?
  • 有没有其他方法可以linux/amd64在 Apple M1 上运行映像,或者应该等待arm64对我正在使用的映像的支持?

小智 0

docker 是否使用 qemu 在 Apple M1 上运行 linux/amd64 映像?

是的,docker内部使用qemu来模拟amd64。

有没有其他方法可以在 Apple M1 上运行 linux/amd64 映像,或者应该等待我正在使用的映像支持 arm64?

目前我不知道有什么其他方法,所以你应该等待arm64支持或修复qemu或修复你使用的图像。