LoginSignup
3
4

More than 1 year has passed since last update.

M1 Mac でmysqlインストールのエラー ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries

Last updated at Posted at 2021-06-11

M1 Macでdocker-composeをするときにmysqlのインストールに失敗するとき。

Status: Downloaded newer image for nginx:latest
Pulling db (mysql:5.7)...
5.7: Pulling from library/mysql
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries

このようなエラーが出る。
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
デフォルトでlinux/arm64/v8のmysqlを探しに行って見つからずにエラーを吐いているようだ。

対処法

docker-compose.ymlにplatformを指定して再度docker-composeをする。

  db:
    image: mysql:5.7
    platform: linux/x86_64

platform: linux/x86_64または
platform: linux/amd64
をDBの箇所に指定してあげればエラー無くインストールが完了する。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4