Not sure how you get from Darwin being based on BSD to Darwin should be able to support something which heavily relies on Linux specific functionality to the point where even Freebsd having trouble https://wiki.freebsd.org/Docker
Sure with enough changes MacOS could support it, but then with enough changes to anything, so that is not really a sensible measure.