Docker on Mac is actually running in a VM, since containers are a linux feature, not unix. You can't develop for linux servers like you can on a linux machine.
It's a pretty well known problem. If you're dealing with a few smallish files you won't notice it, but applications with lots of little files (Node, Python, etc) will have to sync all those files, and that can be pretty slow.