Docker desktop is a piece of crap on macOS. It allocates half your ram for a linux VM and then allocates other linux VMs inside it. If you're doing servers, that's 7+ Gb of ram wasted since your work VMs will at most use hundreds of megabytes.
No i don't realize anything. I had it on just to reproduce a backend and connect to it with my stuff for a while. I just copied whatever the linux (which doesn't have the same problem) backend had and did my work.
Defaults matter. And wasteful defaults denote a certain mindset. Not a good one.
With Docker on MacOS (and Windows), it needs to start a Linux VM so containers can run. This is transparent to the user. With Linux, they run natively, so no VM needed.
VMs require an upfront memory allocation, so this is the reason for the difference. You could also Google "Mac Docker Desktop Memory" and look at the first link.
There is no reason to preallocate 8 Gb though. I've explained how it works myself, but you rushed to justify their decision without reading my full post.
I sure hope WSL does better :)