从 Docker Desktop(300% CPU)到 Colima 和 Portainer(0.2%)在 macOS 上的表现

4作者: muthuishere大约 1 个月前原帖
在macOS上,Docker Desktop通常运行在一个虚拟机中,这会持续占用大量CPU。多年来我一直忍受着这一点——直到今天,当我仅运行两个Node.js应用和一个Python应用时,系统彻底崩溃,界面冻结。<p>我切换到了Colima,并使用命令“docker context use colima”进行设置。然后添加了Portainer作为用户界面(使用命令“docker run -d -p 9000:9000 ...”)。<p>在相同的Compose配置下,Colima的CPU使用率降到了约0.2%。<p>Portainer提供了容器、镜像和控制台的用户界面<p>同时保持了Docker CLI的工作流程<p>完整的文章(带截图)在这里: https://muthuishere.medium.com/docker-desktop-colima-portainer-my-mac-finally-breathes-b70d82d6cf0f
查看原文
Docker Desktop on macOS often sits in a VM that constantly sucks CPU. For years I tolerated it—until today, when running just two Node.js apps + one Python app pegged my system, froze the UI.<p>I switched to Colima and pointed docker context use colima. Then added Portainer for UI (docker run -d -p 9000:9000 ...).<p>With the same compose setup, Colima usage dropped to ~0.2%<p>Portainer provides containers&#x2F;images&#x2F;console UI<p>All while keeping the Docker CLI workflow<p>Full write-up (with screenshots) here: https:&#x2F;&#x2F;muthuishere.medium.com&#x2F;docker-desktop-colima-portainer-my-mac-finally-breathes-b70d82d6cf0f