Docker Apple Silicon対応

お仕事で Docker の Apple Silicon対応やった。

何はともあれ公式ドキュメント

Docker Desktop for Apple silicon | Docker Documentation

公式ドキュメントより引用。

Known issues に書いてあるとおり万事うまく動くというわけではない。

追記: 既知の問題は下記URLに移動した模様

Known issues for Docker Desktop on Mac | Docker Documentation

Not all images are available for ARM64 architecture. You can add --platform linux/amd64 to run an Intel image under emulation.

全てがARM64対応しているイメージではないから、intelのイメージを emulation 環境下で動かすことはできる。

ただ、エミュレーションには下記のような制約もあり、 エミュレーションしたとしても動かないものは動かない

However, attempts to run Intel-based containers on Apple silicon machines under emulation can crash as qemu sometimes fails to run the container. In addition, filesystem change notification APIs (inotify) do not work under qemu emulation.

In summary, running Intel-based containers on Arm-based machines should be regarded as “best effort” only.

関連記事

Apple Silicon Macbook 使ってみた感想

  • ファンレスを疑うくらいファンが回らないし熱を持たない。(特に夏場は)快適
  • MacBook の Touch Bar は要らん子やったんや…
  • キーボードの打ち心地が良い
    • バタフライキーボードはAppleの駄作
  • なんかウインドウシステムあたりの挙動が少しおかしい。Sidecar使ったり、Appからドラッグ・アンド・ドロップでなんか操作するとUIがフリーズする現象を数回体験
    • 今後のアップデートで修正されることを期待