Photo by Rubaitul Azad by Unsplash on Unsplash
In the early days of cloud computing, if you wanted to isolate an application, you built a Virtual Machine (VM). It worked, but it was heavy. Docker changed the game by proving that you don't need a whole new computer to create isolation .you just need a very smart way to talk to the Operating System.
Docker didn't invent "containers"; they standardised them.
containerd and runc. This is the architecture we use today.If you found this helpful, please like and share to support the content!
Always curious to understand the concept, learning by breaking and fixing, and passionate about sharing knowledge with the community.Get in touch with me→
Docker relies on four "Superpowers" of the Linux Kernel to make containers feel like real machines:
When you type a command, a complex chain of components springs into action:
1. Docker Client (The Interface) Think of this as your remote control. It is the command-line tool (docker ...) that you actually interact with. It doesn't build or run anything itself; it just takes your instructions and sends them to the "Headquarters."
2. Docker Daemon (The Manager) This is the Headquarters. It’s a background service that sits and waits for requests from the Client. When it hears a command, it checks its records, manages your images, and tells the other components what needs to be done.
3. containerd (The Supervisor) This is the Project Manager. It was originally part of the Daemon but was broken out to be its own tool. It handles the "life" of the container—it's responsible for pulling images from the internet, starting them, and stopping them.
4. runc (The Worker) This is the Specialist. It is a very small, low-level tool that does exactly one job: it talks directly to the Linux Kernel to "spawn" the container. Once the container is running, runc exits, leaving the container to live under the watch of containerd.
5. BuildKit (The Architect) This is the Modern Engine used specifically for building images. It replaced the old, slower way of building because it’s much smarter—it can look at your instructions and figure out which parts can be built at the same time to save you time.
When you execute docker run hello-world, the Docker Engine initiates a coordinated sequence of events across several modular components. Here is the technical breakdown of that process.
The process begins at the Docker CLI. The client parses your command and sends a structured REST API request to the Docker Daemon (dockerd). This request contains the configuration for the container, such as the image name and any environment variables.
The Daemon delegates image handling to containerd.
containerd queries its local image store for the hello-world manifest.containerd communicates with the Registry (Docker Hub) to download the image layers. These layers are stored in a content-addressable storage system on the host.Before the container starts, containerd forks a process called the containerd-shim.
The shim invokes runc, the OCI-compliant runtime. runc performs the low-level system calls required to interface with the Linux Kernel:
Once the isolated environment is ready, runc launches the entrypoint process of the hello-world application.
runc exits. It is no longer needed once the application is running.Callout content missing
"Build once, run anywhere" is the Docker promise. But how does it run on a Mac or Windows if it needs a Linux Kernel?
For an Architect, Docker is about Standardization. It turns software into "Lego Blocks." While you lose a tiny bit of security compared to a VM, you gain massive speed, portability, and resource efficiency.In AWS or Azure, your Docker containers almost always live inside a VM (like an EC2 instance or Fargate task). You get the security boundary of the VM and the deployment velocity of the Container

Delete your Dockerfile. Learn how Paketo Buildpacks use the pack CLI to create secure, SBOM-ready Node.js images automatically.

Cloud Native Buildpacks eliminate the Dockerfile entirely. Discover the 5-phase lifecycle, core components, and advanced security mechanics that make CNB the enterprise standard for container builds.