Search code examples
dockermacosarchitecturedocker-desktop

What is the (architecture) overview of Docker Desktop on Mac?


I am trying to understand how Docker Desktop for Mac works. Specifically, an overview of the architecture.

There is an image of the generic architecture on the "Overview" page of the "Getting Started" guide.

enter image description here

However, this does not explain the distinction between Docker on Linux (which runs natively) and Docker Desktop on Mac (which runs inside a Virtual Machine).

I would assume things would look a bit like this:

enter image description here

But this is a gross oversimplification, things are missing from this picture.

How does the architecture of Docker Desktop on Mac look?

I've tried piecing things together for myself, but there seems to be a lot of incomplete or conflicting information online. Often it is not clear whether the information given relates to the deprecated Docker Toolbox, Docker Machine or Docker for Mac, or to Docker Desktop on Mac.


[UPDATE]: I came across this overview in a blog post on docker.com from 2016 which seems to be more or less what I am looking for, but I do not know enough of Docker to judge whether that information is still correct (or even relevant) today.

enter image description here


Solution

  • In this link you can find part of the information you are looking for, it can serve as a starting point for the information you are looking for https://collabnix.com/how-docker-for-mac-works-under-the-hood/

    image from collabnix.com:

    image from collabnix.com

    the configuration of linux VM for MAC Hyperkit can be found in this repository https://github.com/linuxkit/linuxkit/blob/master/examples/docker-for-mac.yml