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?

  • iamroot@discuss.tchncs.deOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Production runs on Linux server. The problem is with development environment, I want to avoid Virtualbox as it would be an extra overhead to manage and affect DX.

    • adhdplantdev
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Instead of using something like a bind mount you could try using a Network file share like NFS which has pretty good performance or you could use samba but performance is not its strong suit.