从 Docker Desktop(300% CPU 占用)到 Colima 和 Portainer(0.2% CPU 占用)在 macOS 上的迁移
4 分•作者: muthuishere•8 个月前
macOS 上的 Docker Desktop 经常运行在一个虚拟机中,持续占用大量 CPU 资源。多年来我一直忍受着它——直到今天,仅仅运行两个 Node.js 应用 + 一个 Python 应用就让我的系统不堪重负,UI 界面也卡死了。<p>我切换到了 Colima,并使用 `docker context use colima` 命令指向它。然后添加了 Portainer 作为 UI(`docker run -d -p 9000:9000 ...`)。<p>使用相同的 compose 配置,Colima 的 CPU 占用率下降到了大约 0.2%<p>Portainer 提供了容器/镜像/控制台 UI<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/images/console UI<p>All while keeping the Docker CLI workflow<p>Full write-up (with screenshots) here:
https://muthuishere.medium.com/docker-desktop-colima-portainer-my-mac-finally-breathes-b70d82d6cf0f