Most of the Docker images are not compatible with the newest Apple Silicon M1 chip
throwing no matching manifest for linux/arm64/v8
. Let’s see how to resolve the issue.
Prerequisites
- Docker
- sudo privileges
Solution
Step 1. If you are using Docker Compose file you should put the platform: linux/amd64
line under the image
.
version: '3'
services:
mysql:
image: mysql
platform: linux/amd64
ports:
...
Start the containers.
sudo docker-compose up
Step 2. If you want to pull the image directly from Docker CLI use the following command:
sudo docker pull --platform linux/amd64 mysql
Step 3. Or if you need to execute run use:
sudo docker run --platform linux/amd64 mysql
Conclusion
Give it a try and let us know about the solution! On a side note, follow our official channel on Telegram.