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
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.
Yes, it works the same way. I will add a note about it.
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.