1. home
  2. virtualization
  3. colima-vs-docker-desktop-memory-battery-and-cold-start-numbers

Colima vs Docker Desktop: memory, battery and cold-start numbers

Diego Alvarez Virtualization 1 min read 64 comments 356 views

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

S
Sofia Lind May 25, 2025 · 8:15 AM

Switched after reading this and my battery life noticeably improved.

E
Elif Kaya May 26, 2025 · 9:36 PM

Clear, short, and no fluff. More of this please.

L
Lucy Tran Jun 2, 2025 · 1:14 AM

Saved this to my dotfiles notes. The tip at the end is gold.

A
Ana Ferreira Nov 21, 2025 · 1:23 AM

Try clearing the cache first, that fixed it for me.

J
Jonas Becker Jun 5, 2025 · 7:46 PM

Counterpoint: I have had the opposite experience on a Mac mini, but my workload is very different.

K
Kenji Mori Jun 7, 2025 · 11:51 PM

How does this compare with the approach in your earlier guide?

S
Sofia Lind Jun 11, 2025 · 8:48 PM

Finally someone explains this without assuming I already know it.

S
Sofia Lind Nov 16, 2025 · 9:36 PM

Try clearing the cache first, that fixed it for me.

F
Fatima Zahra Jun 16, 2025 · 5:29 AM

Nice pick. Already set it on both displays.

N
Nina Petrova Jun 21, 2025 · 10:41 PM

Printed this out and stuck it next to my desk. Old habits.

F
Fatima Zahra Jun 26, 2025 · 1:22 PM

Would this work with fish instead of zsh?

E
Elif Kaya Jul 19, 2025 · 1:04 AM

Small typo in the second paragraph, but otherwise perfect.

F
Fatima Zahra Aug 17, 2025 · 12:35 AM

This is exactly the write-up I needed this week. Bookmarked.

M
Marco Bellini Sep 9, 2025 · 9:46 AM

Tried this on an M1 Air and got the same numbers within a few percent.

C
Chidi Eze Sep 15, 2025 · 4:36 AM

Any chance you could share the full config in a gist? The snippet is great but I want to see the rest.

C
Chidi Eze Sep 19, 2025 · 2:46 AM

I have been doing this the hard way for years. Thank you.

G
Grace Kim Sep 20, 2025 · 4:24 PM

Worth mentioning that this behaves differently on Intel Macs. Took me an hour to figure that out.

K
Kenji Mori Sep 22, 2025 · 8:42 AM

Great post. One small correction: the flag is case-sensitive on older versions.

M
Marco Bellini Sep 26, 2025 · 2:11 PM

Followed along step by step and it worked first time, which never happens.

M
Marco Bellini Oct 6, 2025 · 7:03 AM

Does this survive a macOS point release? Mine broke after the last one.

C
Chidi Eze Oct 8, 2025 · 6:28 AM

The benchmark table alone is worth the read.

R
Ravi Menon Oct 16, 2025 · 12:55 PM

I would love a follow-up on how this interacts with Time Machine.

T
Tom Brennan Nov 1, 2025 · 9:04 AM

Switched after reading this and my battery life noticeably improved.

R
Ravi Menon Mar 20, 2026 · 8:13 PM

Agreed, the Intel behaviour caught me out as well.

A
Ana Ferreira Nov 4, 2025 · 8:17 PM

Clear, short, and no fluff. More of this please.

C
Chidi Eze Nov 17, 2025 · 8:25 AM

Saved this to my dotfiles notes. The tip at the end is gold.

T
Tom Brennan Nov 17, 2025 · 9:47 AM

Counterpoint: I have had the opposite experience on a Mac mini, but my workload is very different.

A
Ana Ferreira Dec 13, 2025 · 2:08 AM

How does this compare with the approach in your earlier guide?

C
Chidi Eze Dec 13, 2025 · 9:33 PM

Finally someone explains this without assuming I already know it.

N
Nina Petrova Dec 15, 2025 · 7:26 AM

Nice pick. Already set it on both displays.

P
Pablo Ortiz Dec 16, 2025 · 6:04 AM

Printed this out and stuck it next to my desk. Old habits.

O
Owen Hughes Jan 1, 2026 · 5:09 PM

Would this work with fish instead of zsh?

S
Sofia Lind Feb 8, 2026 · 6:47 PM

Small typo in the second paragraph, but otherwise perfect.

F
Fatima Zahra Feb 11, 2026 · 4:00 PM

This is exactly the write-up I needed this week. Bookmarked.

C
Chidi Eze Feb 14, 2026 · 1:36 AM

Tried this on an M1 Air and got the same numbers within a few percent.

J
Jonas Becker Mar 4, 2026 · 4:45 PM

Any chance you could share the full config in a gist? The snippet is great but I want to see the rest.

O
Owen Hughes Mar 12, 2026 · 4:24 PM

I have been doing this the hard way for years. Thank you.

G
Grace Kim Mar 24, 2026 · 7:22 PM

Worth mentioning that this behaves differently on Intel Macs. Took me an hour to figure that out.

D
Diego Alvarez author Mar 29, 2026 · 6:36 PM

Great question. I am planning a follow-up that covers exactly this.

F
Fatima Zahra Apr 2, 2026 · 4:13 AM

Great post. One small correction: the flag is case-sensitive on older versions.

R
Ravi Menon Apr 13, 2026 · 12:27 AM

Followed along step by step and it worked first time, which never happens.

O
Owen Hughes Apr 16, 2026 · 3:29 AM

Does this survive a macOS point release? Mine broke after the last one.

D
Diego Alvarez author Jun 13, 2026 · 11:11 AM

Thanks! Good catch, I have updated the post.

D
Diego Alvarez author Jun 21, 2026 · 11:31 AM

Great question. I am planning a follow-up that covers exactly this.

M
Marco Bellini Aug 3, 2026 · 5:36 AM

Same here, it made a big difference.

A
Ana Ferreira Jun 1, 2026 · 3:12 AM

The benchmark table alone is worth the read.

M
Marco Bellini Jun 7, 2026 · 9:25 AM

Good question, I would like to know too.

K
Kenji Mori Jun 6, 2026 · 2:13 AM

I would love a follow-up on how this interacts with Time Machine.

O
Ola Nordmann Jun 18, 2026 · 11:07 AM

Switched after reading this and my battery life noticeably improved.

P
Pablo Ortiz Jun 30, 2026 · 7:59 AM

Clear, short, and no fluff. More of this please.

A
Ana Ferreira Jul 2, 2026 · 10:44 AM

Saved this to my dotfiles notes. The tip at the end is gold.

N
Nina Petrova Jul 2, 2026 · 12:40 PM

Counterpoint: I have had the opposite experience on a Mac mini, but my workload is very different.

K
Kenji Mori Jul 25, 2026 · 1:09 AM

How does this compare with the approach in your earlier guide?

N
Nina Petrova Jul 26, 2026 · 11:24 AM

Finally someone explains this without assuming I already know it.

K
Kenji Mori Jul 31, 2026 · 1:53 AM

Nice pick. Already set it on both displays.

O
Ola Nordmann Aug 3, 2026 · 8:06 PM

Printed this out and stuck it next to my desk. Old habits.

M
Marco Bellini Aug 14, 2026 · 11:07 AM

Would this work with fish instead of zsh?

D
Diego Alvarez author Aug 21, 2026 · 12:08 PM

Thanks! Good catch, I have updated the post.

J
Jonas Becker Aug 27, 2026 · 9:45 AM

Small typo in the second paragraph, but otherwise perfect.

$ echo "leave a comment"