Home >Database >Mysql Tutorial >Why Does My Docker MySQL Image Fail on Apple Silicon with 'no matching manifest for linux/arm64/v8' Error?
Docker (Apple Silicon/M1 Preview) MySQL Error: "no matching manifest for linux/arm64/v8 in the manifest list entries"
When attempting to use the MySQL Docker container on an Apple Silicon device with the Docker Preview installed, users encounter the following error:
"no matching manifest for linux/arm64/v8 in the manifest list entries"
This error occurs when attempting to pull the mysql-server image, despite using both :latest and :8 tags. While PHPMyAdmin and WordPress images pull successfully, the MySQL image remains problematic.
Solution:
While the error prevents running MySQL on ARM devices, there are temporary workarounds available.
Specify platform:
Add the platform parameter to the MySQL service in the YAML file, specifying the Linux x86_64 architecture:
services: db: platform: linux/x86_64 image: mysql:5.7 ...
Use MariaDB:
MariaDB can be used as a drop-in replacement for MySQL:
services: db: image: mariadb:10.5.8 ...
Both solutions have been tested and verified to work on M1 devices with the Docker Preview.
The above is the detailed content of Why Does My Docker MySQL Image Fail on Apple Silicon with 'no matching manifest for linux/arm64/v8' Error?. For more information, please follow other related articles on the PHP Chinese website!