I suspect the popularity of docker as a local developer tool comes from convenience. It feels easier to install docker than fix your homebrew permissions, install anaconda or install a recent version of nodejs on ubuntu. And if you’re already using docker in production, you need a workflow to make docker images anyway.
That and it’s trendy.
Never mind that using docker makes macos sometimes not sleep properly. That it makes your program much more difficult to debug. Or that you’re throwing away 2/3rds of the performance and 1/2 of the RAM of your expensive computer in the process.
Everyone else is using it. We can’t all be wrong, can we?