When running docker dev environment with Linux and Windows (with WSL2), it’s already in the same container context so the performance is decent. However, on Mac there’s no WSL2 equivalent so bind mounts are painfully slow due to the overhead of translation between the Mac’s and container filesystem.
Is there any way to run the code in docker VM like WSL2 allows?

Paradox
link
fedilink
41Y

I moved off docker engine and to colima for this very reason. Mounts are speedy now

I’ve been looking at this, we use Docker Desktop for local development on M1 Macs. Is there a reason to switch? Does it have a lower memory footprint?

Paradox
link
fedilink
11Y

It’s a lot more performant, because it makes use of apple’s built in virtualization tools. You can adjust how much memory, CPU, and storage are given to the vm

Does it support docker compose?

Paradox
link
fedilink
English
21Y

Yep. Using it daily

Create a post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

  • 1 user online
  • 2 users / day
  • 2 users / week
  • 8 users / month
  • 98 users / 6 months
  • 1 subscriber
  • 302 Posts
  • 2.15K Comments
  • Modlog