Why is it possible to run Linux containers on docker in MacOS

Viewed 1169

Please correct me if there are any issues in my understanding of Docker and operating systems.

From what I understand, Docker uses the underlying kernel of the OS of the machine running the Docker engine. As a result you are not able to run Windows containers on a Linux machine as it requires Windows kernel. My question is how am I able to run CentOS, Ubuntu containers on my MacOS machine, given that MacOS does not use a Linux kernel even though they are both Unix based.

1 Answers
Related