docker,

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Feb 18, 2022 · 1 min read · Post a comment
Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

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

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.