š¢ Inside Docker: Understanding the Engine that Powers Modern DevOps


Docker changed the game for developers and DevOps engineersābut how does it actually work behind the scenes? Today, letās break it all down.
š§ What Youāll Learn
What the Docker engine is and how it works
Difference between Docker Images, Containers, Volumes, and Networks
Why Docker is lightweight and faster than VMs
What really happens when you run
docker run nginx
š§° Docker Engine: The Core of It All
Docker isnāt just a command line toolāit's a system with 3 main components:
1. Docker Client
This is what you interact with when you type commands like docker pull
or docker run
. The client sends your instructions to the daemon.
2. Docker Daemon (dockerd
)
The engine that does the heavy lifting. It builds images, runs containers, manages volumes/networks, and more.
3. Docker REST API
This is how the client and daemon talk. The Docker client uses HTTP requests to communicate with the daemon through this API.
š¦ Images, Containers, Volumes & Networks
Letās simplify these core concepts:
Term | What It Is | Analogy |
Image | Read-only template with app & deps | Recipe |
Container | A running instance of an image | Dish made from recipe |
Volume | Persistent storage outside the container | USB drive for your container |
Network | Allows containers to talk to each other | WiFi for containers |
š Docker vs Virtual Machines
Before Docker, teams used Virtual Machines (VMs). Hereās why Docker is a huge upgrade:
Feature | Virtual Machine | Docker |
Boot time | Minutes | Seconds |
OS Overhead | Full guest OS per VM | Shares host kernel |
Resource usage | Heavy (RAM, CPU) | Lightweight |
Portability | VM images are huge | Docker images are small |
š Why Docker is Fast and Lightweight
Docker doesnāt virtualize hardwareāit uses the hostās OS kernel. That means:
Less memory usage
Faster startup
Smaller images
Easier deployment
Docker uses Union File Systems (UnionFS) like OverlayFS, which stacks image layers to save space and allow fast versioning.
š What Happens When You Run docker run nginx
Hereās the flow under the hood:
Check if
nginx
image exists locally
ā If not, pull from Docker HubCreate a container from the image
Assign a network and volume (if specified)
Start the container
ā Now Nginx is running inside its own isolated environment!
š§Ŗ Quick Recap
Docker is built on client-daemon architecture
Containers are lightweight, isolated app instances
Docker is faster than VMs because it skips full OS virtualization
When you run
docker run
, it does more than just āstart somethingā
āļø Whatās Next?
Tomorrow, Iāll explore Dockerfile basics and how to write your own custom images. Stay tuned.
š Daily updates here on Hashnode
š¢ Weekly recaps on LinkedIn ā follow to learn with me!
Subscribe to my newsletter
Read articles from Abdul Raheem directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Abdul Raheem
Abdul Raheem
Cloud DevOps | AWS | Terraform | CI/CD | Obsessed with clean infrastructure. Cloud DevOps Engineer š | Automating Infrastructure & Securing Pipelines | Bridging Gaps Between Code and Cloud āļø Iām on a mission to master DevOps from the ground upābuilding scalable systems, automating workflows, and integrating security into every phase of the SDLC. Currently working with AWS, Terraform, Docker, CI/CD, and learning the art of cloud-native development.