DEV Community

Cover image for Docker Architecture In Easy Mode
Zahid Ahmed
Zahid Ahmed

Posted on

Docker Architecture In Easy Mode

- Explore the intricate design and comprehensive operational mechanics of Docker

Docker

When we execute command using the Docker CLI to create a container, the docker client converts the command into a RESTful API, which is then passed to the Docker Daemon.

Docker Daemon on receiving the instruction, first checks if the image provided is already available on the local system. If it is not, the image is downloaded from the docker registry, and once the image is downloaded

It makes a call to the containerd to start the container. containerd is responsible for converting the image that was downloaded into an OCl compliance bundle.

It then passes the bundle to containerd-shim, which in turn calls the runC to start container and interacts with the namespaces and groups.

while runC utilizes libcontainer under the hood to interact with the Linux kernel and manage containers

That's how a container gets created.

Top comments (0)