Depending on amount of customisation you want. If you will just run Ubuntu or other “user-facing” distribution and call it a day, then there should be not much difference between macOS and your Linux (maybe except some applications like my favourite Dash). However if you want to customise your OS then Linux will be much easier both to customise and screw up everything.
About Docker then the native support for it on Linux for sure is a big pro, but I haven’t had much problems with my limited use of Docker on macOS via VM (I find it enormously sad that macOS still do not support FreeBSD jails which is like containers on Linux).