docker on mac is a pain either way, since it sits in a linux vm and talks to mac fs via nfs. And as for permissions... well, it's been pretty much covered long time now - e.g. https://www.berthon.eu/2018/containers-volumes-and-file-perm...
hope this makes your life a bit easier.
Not when part of your dev use macOS and another part uses linux: gotta love how docker manages file permissions between host and containers.