675 words
3 minutes

How Docker Works Under the Hood - A Girly Tech Deep Dive

By · Developer Advocate · Docker Captain · IBM Champion
Side view of a clean white desk with a silver iMac, white Magic Keyboard and Magic Mouse in soft daylight, with a takeaway coffee cup blurred in the background

Hey, tech queens (and kings, if you’re here too)! 👩‍💻✨

So here’s the plan. We’re going under the hood of Docker to see what actually happens when we run those magical docker run commands. Are you the curious, IT-obsessed type who can’t rest until you know how stuff actually works? Same, sis. You’re in for a treat! 🍭🚀

So, What Even Is Docker?#

Honestly? Docker makes life so much easier. No more installing a million dependencies. No more “it works on my machine” drama (ugh, been there!). We just throw everything into a container and let Docker do its thing.

But what’s actually happening behind the scenes? Let me spill. ☕

Docker Is Not a Virtual Machine (And That’s Important!)#

Okay, first things first. If you think Docker is like VirtualBox or VMWare, girl, we need to talk! 🙅‍♀️

Virtual Machines (VMs) spin up a whole new OS inside another OS. So they’re slow. They eat resources for breakfast. Basically each one acts like a separate computer living in your computer.

Docker doesn’t do that at all. Instead it runs containers on the same OS kernel as your host machine. Picture all the apps open on your phone right now. Each one is its own little thing, but they’re all sharing one iOS or Android underneath. That’s the vibe.

🚀 Result: Docker containers boot in seconds, sip way less memory, and stay super lightweight next to a VM.

What Happens When You Run docker run?#

You type docker run nginx and boom, your container is up and running. But what actually fires off behind that one little command? Here’s the tea ☕:

1️⃣ Docker CLI talks to Docker Daemon 💬

  • The CLI (Command-Line Interface) sends a request to the Docker Daemon (a background process that does all the hard work). Think of the daemon as Docker’s fairy godmother 🧚‍♀️—it grants your wish to run containers!

2️⃣ Docker Daemon checks for the image 🔍

  • No Nginx image sitting on your machine? Docker goes and pulls it from Docker Hub (kind of like an app store for containers).

3️⃣ Docker creates a container 📦

  • It sets up namespaces (more on that below!), allocates resources, and makes sure the container is walled off from your main system.

4️⃣ Docker starts the container’s main process 🚀

  • Containers are really just Linux processes running in their own isolated bubble. They don’t boot a full OS the way a VM does. Just the app you asked for, nothing extra.

5️⃣ You now have an active container! 🎉

  • Run docker ps and you’ll see it in action!

How Docker Keeps Containers Separate#

So if every container shares the same OS kernel, how on earth do they stay out of each other’s business? Two words: Linux namespaces and cgroups. This is where the magic actually lives.

💎 Namespaces = “You do you, I do me!”

  • Namespaces give each container its own private world: its own file system, its own network, its own process tree, the whole apartment.
  • That’s the reason you can run ls inside a container and not see a single one of your host’s files!

💎 Cgroups = “You get this much CPU, you get this much RAM!”

  • Containers share resources, sure. But cgroups make sure one greedy little container doesn’t hog all the CPU or memory for itself.
  • Think of a Netflix account with multiple users. Everyone gets their fair share!

Why This Matters (And Why You Should Care)#

So now you know Docker isn’t actually magic. (Though, real talk, it sure feels like it sometimes ✨.) And once you get how it really works under there, you debug faster, you tune your performance, you start wielding the thing like a total pro.

👩‍💻 Next Steps:

  • Try running docker stats to see how much CPU/memory your containers use.
  • Experiment with docker inspect to peek inside a container’s metadata.
  • Play with docker network ls to check out how containers communicate!

Final Thoughts#

Docker is a total power-up. But the girls who know what’s happening underneath? Unstoppable. Now go flex your new knowledge, container queen! 👑💻🔥

Tag me if you try any of these tips.

I’d love to hear about your Docker adventures! 🚀💬


Tatiana Mikhaleva

Docker Captain  ·  IBM Champion  ·  AWS Community Builder

DevOps.Pink — Signal over noise in cloud-native & AI.

Pink Signal

The cloud-native stack, without the gatekeeping

Docker, Kubernetes, and the agentic-AI era — hands-on and clearly explained, for engineers who actually ship. Pink Signal lands in your inbox when there's something worth knowing.

Related Posts

Same category
  1. 1
    How to Secure AI Agents in Production: IBM's Six-Phase Framework
    DevOps & Cloud · Teams secure AI agents like normal software, and production breaks. Here's IBM and Anthropic's six-phase framework for securing them, phase by phase.
  2. 2
    Your AI Agent Doesn't Need a Better Prompt. It Needs a Ceiling
    DevOps & Cloud · A prompt is not a security control. It's a wish. The Vault → Sentinel → MCP → ADLC → watsonx Orchestrate stack that gives AI agents a hard ceiling — and why IBM consolidating HashiCorp made the whole thing boring, in the best possible way.
  3. 3
    CNCF Q1 2026 Report — Why Feature Flagging Is the Hidden Gateway to Cloud Native Maturity
    DevOps & Cloud · CNCF Q1 2026 cloud native report analysis. Why feature flagging is the bridge from mainstream to advanced engineering practice, with exclusive commentary from the report's author.
  4. 4
    AI SRE Joined My On-Call — A Beginner-Friendly Walkthrough of Rootly
    DevOps & Cloud · What an AI SRE actually does on call. A hands-on walkthrough of Rootly — how it observes, advises, and (when you let it) acts. With a real look at the four-level trust model.

Random Posts

Random
  1. 1
    Escaping the Command Line Cartel: Why I Mandate Visual Git in Enterprise DX
    DevOps & Cloud · Relying purely on the terminal is a toxic DX dependency. Discover how architecting visual version control with GitKraken eliminates cognitive load, enforces psychological safety, and scales enterprise DevOps.
  2. 2
    Your First Git Commit - A Beginner-Friendly Guide to Version Control
    DevOps & Cloud · A simple Git tutorial for beginners. Learn how to install Git, set it up, and make your first commit — no experience needed.
  3. 3
    10 Terraform Interview Questions You Must Know in 2025
    DevOps & Cloud · Master 10 key Terraform interview questions for 2025 DevOps and Cloud Engineer roles with tips, examples, and expert insights.
  4. 4
    How AI Models Are Really Trained - From Idea to Reality
    AI & MLOps · Learn how AI models are trained step by step — from data prep to deployment. Simple, beginner-friendly guide with real-life examples.
How Docker Works Under the Hood - A Girly Tech Deep Dive
https://devops.pink/how-docker-works-under-the-hood-a-girly-tech-deep-dive/
Author
Tatiana Mikhaleva
Published
2025-03-21
License
CC BY-NC-SA 4.0