2
2

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 1 year has passed since last update.

Docker for MacからLimaへの移行メモ

Last updated at Posted at 2022-08-05

開発環境をM1をスキップしてM2 Macbook Airに移行したので今更Appleシリコン環境への移行をしました。
Lima (version 0.11.3) は普通に使えたのでDocker for Macと比較した注意点だけメモ。

  • Docker for MacはMac OSが直接Dockerホストになっていたけど、LimaではDocker的にはLima VMがDockerのホストになる。
  • Docker SwarmでpublishしたポートにMac OSからアクセスする場合、service作成時に
    --publish mode=host,target=8080,published=3000
    のようにmode=hostを指定する必要がある
  • mountTypeがデフォルトだとsshfsになっているが、chownによるパーミッション絡みのエラーが出るので9pを使用した
mountType: 9p
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?