XNU (the macOS kernel) may have BSD origins, but it doesn't have features like cgroups and process namespacing that the Linux kernel provides and the Docker runtime relies on.
Re:Docker in Production: A retort
by justincormack on Sunday November 06, 2016 @05:13AM
(#12884394)
Nor does it have FreeBSD jails.
Macs don't appear to have support for containers which is what Docker is. Well that is probably bollocks because they are *BSD based and I know that FreeBSD at least has a form of containerization and I seem to recall that the whole container thing was invented on a BSD - "jails".
So Docker can't run native on iStuff. You have to run it within a Linux VM. I gave up on Googling for "apple mac jail" 8)
The reason why Docker runs slowly on Macs is because it is running under emulation within a VM.
Unfortunately, Macs are not cool enough to run Docker, so there 8)
Cheers Jon