Workaround for "No Matching Manifest for MySQL on Docker Apple Silicon Preview (ARM64)"
When running custom Docker containers on Docker Apple Silicon Preview, users may encounter an error while pulling the MySQL image:
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
Problem:
This error occurs because the latest MySQL does not have a pre-built ARM64 image available.
Solution:
While the issue cannot be directly resolved (there is no ARM64 MySQL image available yet), there are two workarounds:
1. Use Platform Override:
Override the platform to x86_64 in the Docker Compose YAMl file:
services: db: platform: linux/x86_64 image: mysql:5.7 ...
2. Use MariaDB as a Substitute:
MariaDB can be used as a drop-in replacement for MySQL:
services: db: image: mariadb:10.5.8 ...
Both workarounds have been tested and confirmed to work on the Docker Apple Silicon Preview with M1 ARM64 architecture.
The above is the detailed content of How to Resolve 'No Matching Manifest for MySQL on Docker Apple Silicon'?. For more information, please follow other related articles on the PHP Chinese website!