1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

M1macでdocker pullしたときのエラー

Posted at

個人メモ。

mysql:8をdocker pullしたときに下記のエラーが出力された。latestでも同じ。

latest: Pulling from library/mysql
no matching manifest for linux/arm64/v8 in the manifest list entries

pullコマンドをオプション--platformをつけて実行する。

docker pull --platform=linux/x86_64 mysql:8

runするときにも同じオプションをつける。

docker run -d -it --platform=linux/x86_64 -e MYSQL_ROOT_PASSWORD=[任意のパスワード] mysql:8  

何回もrunする場合はdocker-composeファイルを書く。
https://stackoverflow.com/questions/65456814/docker-apple-silicon-m1-preview-mysql-no-matching-manifest-for-linux-arm64-v8

とはいえ前述のdockerのドキュメントによると、動くけどエミュレータ上で動かしてるから性能は落ちるので、M1チップでも動くイメージできるだけ使ってね、とのこと。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?