最近我购买了一台搭载M1芯片的新款MacBook Pro电脑。 我尝试运行一些Docker镜像,但是出现了一些错误:
$ docker pull mariadb:5.5
5.5: Pulling from library/mariadb
no matching manifest for linux/arm64/v8 in the manifest list entries
$ docker run custom-mariadb-build-based-5.5:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
runtime: failed to create new OS thread (have 2 already; errno=22)
我还有其他(非MariaDB)镜像也存在同样的问题。使用--platform=linux/amd64
命令运行它们并没有任何区别(除了消除警告)。
我知道这里已经有类似的问题了。它们有重新构建新架构镜像的答案。然而,当前不可能实现这一点,而且我也需要具体版本的MariaDB,但这个版本尚不支持arm64。
我猜我不是唯一遇到这个问题的人,我想知道其他人是如何解决的。我已经尝试过使用colima或rancher进行虚拟化,但这种方法没有奏效。
$ docker run --platform=linux/amd64 mariadb:5.5 runtime: failed to create new OS thread (have 2 already; errno=22) fatal error: newosproc
- user969039