Docker Desktop 實在太慢了 - orbstack 來拯救#
用 Docker Desktop 啟動 docker,docker 映像啟動多一些,16G 的 MAC 基本就開始反應緩慢,
偶然用上了orbstsack, 那真的是輕快多了.
orbstack#
官方網站說的這些,沒有太騙人,用了下確實比 Docker Desktop 快很多.
Orbstack 關於 CPU 的說法:#
On M1, OrbStack uses around 0.1% CPU when idle, often dropping to 0%. That's lower than the background CPU usage of many typical macOS apps!
On Intel, usage is slightly higher, but still significantly lower than other apps.
CPU is used on demand when you run container and machines. You can limit the maximum CPU usage in Preferences or using the orb config command.
Docker
Docker uses no additional CPU when idle, and around 0.5% CPU total (on M1) when containers are running.
To minimize CPU usage, stop any containers you're not using.
不管數據是不是精確,我的 intel 的 MAC, CPU MAC 風扇聲音突然變大情況少了很多,確實快 。使用 docker desktop 的時候進場一開 docker desktop 風扇狂響,然後電腦就沒反應了......
orbstack 關於內存使用的說法#
動態分配和回收不用的 docker 容器或者 linux 機器的內存,內存使用下降很多.
我自己使用的體會是: 用了 orbstack之後,我開三個 IDE 就再沒有遇到內存不夠用的時候了,之前用 docker desktop 還是進場會遇到.
True dynamic memory allocation allows OrbStack to release memory when it's no longer used by Docker containers or Linux machines, which can reduce memory usage significantly and remove the need to adjust the limit.
orbstack 還是值得使用,有需要的朋友可以用用試試,用了會喜歡的. docker desktop 不知道為什麼那麼占資源,實際使用的情況也就是看一下有幾個映像啟動,在 MAC 上用 k8s 那寫些用的還是比較少,如果是這種情況,強烈推薦 orbstsack.