Mac M1 chip computer Docker reports error when pulling Mysql? no matching manifest for linux/arm64/v8 in the manifest list entries

Mac m1 chip, I want to use docker to pull the mysql5.7 image to play with, but I found an error.

What does no matching manifest for linux/arm64/v8 in the manifest list entries
mean?
Poor English translation + speculation, it should be related to the chip structure of m1.
I saw an explanation from an old man on the Zhihu website and thought it was very good. It probably means that the
M1 chip is an arm64 architecture, also called aarch64 architecture. It can only Run programs with arm64/aarch64 architecture.
When we go to dockerHub to search for images, we will find that our mysql5.7 looks like this
Insert image description here

The architecture of amd64, which is the architecture of Intel CPU, is also called x86_64.
In other words, there is an adaptation problem. The m1 chip does not have a suitable image, so an error is reported.

How to solve it?

I read a lot of posts, and most of them are like this:
1. We need to find a MySQL image suitable for arm64 architecture. Let’s first see if it is officially available. There are also people in the community who have made these images. You can look for it on Docker Hub. If you really can't find it, you can write a Docekrfile yourself based on the arm64 image of Debian or CentOS.
2. The MySQL officially provided by docker does not have arm64 architecture, but the mysql/mysql-server officially provided by MySQL does, so you can choose to execute and
find a blog: https://blog.csdn.net/zer0_o/article/details/ 114835667

docker pull mysql/mysql-server

3. Just add --platform linux/x86_64.

docker pull --platform linux/x86_64 mysql

Go to: https://blog.csdn.net/qq_22155255/article/details/118861560

Guess you like

Origin blog.csdn.net/asd54090/article/details/133415699