Colima vs Docker Desktop: memory, battery and cold-start numbers
Both tools run containers in a lightweight Linux VM. The difference is everything around that VM: the GUI, the file sharing, and how much RAM sits reserved while you are not using it.
Cold start
Colima started a 4 GB VM in 11 seconds; Docker Desktop took 19 seconds to reach a green whale. Both were faster on the second start of the day.
Memory and battery
With a Postgres, Redis, and Rails stack idling, Colima's VM used 1.6 GB and Docker Desktop 3.1 GB. Over a four-hour battery test the gap was about 25 minutes of runtime.
File sharing
Both now use VirtioFS. Rails boot times were within a second of each other, which was not true two years ago.
- Pick Colima if you live in the terminal.
- Pick Docker Desktop if your team needs the GUI and extensions.
- Either way, set a memory cap.
terminal
colima start –cpu 4 –memory 4 –vm-type vz –vz-rosetta –mount-type virtiofs
docker context use colima
Simplicity is prerequisite for reliability.
Edsger W. Dijkstra, EWD498 (1975)
Switching between the two changes the active Docker context. Run
docker context ls if images seem to have vanished.
$ cat /comments 64
Switched after reading this and my battery life noticeably improved.
Clear, short, and no fluff. More of this please.
Saved this to my dotfiles notes. The tip at the end is gold.
Try clearing the cache first, that fixed it for me.
Counterpoint: I have had the opposite experience on a Mac mini, but my workload is very different.
How does this compare with the approach in your earlier guide?
Finally someone explains this without assuming I already know it.
Try clearing the cache first, that fixed it for me.
Nice pick. Already set it on both displays.
Printed this out and stuck it next to my desk. Old habits.
Would this work with fish instead of zsh?
Small typo in the second paragraph, but otherwise perfect.
This is exactly the write-up I needed this week. Bookmarked.
Tried this on an M1 Air and got the same numbers within a few percent.
Any chance you could share the full config in a gist? The snippet is great but I want to see the rest.
I have been doing this the hard way for years. Thank you.
Worth mentioning that this behaves differently on Intel Macs. Took me an hour to figure that out.
Great post. One small correction: the flag is case-sensitive on older versions.
Followed along step by step and it worked first time, which never happens.
Does this survive a macOS point release? Mine broke after the last one.
The benchmark table alone is worth the read.
I would love a follow-up on how this interacts with Time Machine.
Switched after reading this and my battery life noticeably improved.
Agreed, the Intel behaviour caught me out as well.
Clear, short, and no fluff. More of this please.
Saved this to my dotfiles notes. The tip at the end is gold.
Counterpoint: I have had the opposite experience on a Mac mini, but my workload is very different.
How does this compare with the approach in your earlier guide?
Finally someone explains this without assuming I already know it.
Nice pick. Already set it on both displays.
Printed this out and stuck it next to my desk. Old habits.
Would this work with fish instead of zsh?
Small typo in the second paragraph, but otherwise perfect.
This is exactly the write-up I needed this week. Bookmarked.
Tried this on an M1 Air and got the same numbers within a few percent.
Any chance you could share the full config in a gist? The snippet is great but I want to see the rest.
I have been doing this the hard way for years. Thank you.
Worth mentioning that this behaves differently on Intel Macs. Took me an hour to figure that out.
Great question. I am planning a follow-up that covers exactly this.
Great post. One small correction: the flag is case-sensitive on older versions.
Followed along step by step and it worked first time, which never happens.
Does this survive a macOS point release? Mine broke after the last one.
Thanks! Good catch, I have updated the post.
Great question. I am planning a follow-up that covers exactly this.
Same here, it made a big difference.
The benchmark table alone is worth the read.
Good question, I would like to know too.
I would love a follow-up on how this interacts with Time Machine.
Switched after reading this and my battery life noticeably improved.
Clear, short, and no fluff. More of this please.
Saved this to my dotfiles notes. The tip at the end is gold.
Counterpoint: I have had the opposite experience on a Mac mini, but my workload is very different.
How does this compare with the approach in your earlier guide?
Finally someone explains this without assuming I already know it.
Nice pick. Already set it on both displays.
Printed this out and stuck it next to my desk. Old habits.
Would this work with fish instead of zsh?
Thanks! Good catch, I have updated the post.
Small typo in the second paragraph, but otherwise perfect.