<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Fjr</title>
    <description>The latest articles on Forem by Fjr (@fjr).</description>
    <link>https://forem.com/fjr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3904227%2F9af58723-e277-4bbe-84e6-93581ae1785a.png</url>
      <title>Forem: Fjr</title>
      <link>https://forem.com/fjr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/fjr"/>
    <language>en</language>
    <item>
      <title>Episode 2: The Anatomy of a Hero (The Inner Workings)</title>
      <dc:creator>Fjr</dc:creator>
      <pubDate>Tue, 05 May 2026 06:38:03 +0000</pubDate>
      <link>https://forem.com/fjr/episode-2-the-anatomy-of-a-hero-the-inner-workings-mj3</link>
      <guid>https://forem.com/fjr/episode-2-the-anatomy-of-a-hero-the-inner-workings-mj3</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Jack had finally stepped into the world of Docker. It felt like magic, but Jack was never one to just believe in "&lt;strong&gt;magic spells&lt;/strong&gt;." He was curious. He wanted to look under the hood and see what actually made Docker so powerful.&lt;br&gt;
&lt;strong&gt;He had one big question:&lt;/strong&gt; How could 50 different people live in the same "&lt;strong&gt;apartment building&lt;/strong&gt;" (the Host OS) without accidentally reading each other's mail or eating each other's food? He needed to understand the mechanics of Isolation.&lt;br&gt;
To truly master this world and, of course to impress Rose with his technical depth Jack decided to dive deep. He discovered that the entire Docker universe is built on &lt;strong&gt;Three Main Pillars&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Section 2: The Three Pillars of Docker
&lt;/h2&gt;

&lt;p&gt;To understand how Docker works, you have to understand how it talks to the Linux Kernel (the brain of your computer). It uses three specific tools to create the "&lt;strong&gt;Apartment&lt;/strong&gt;" environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pillar 1: Security (Namespaces)&lt;/strong&gt;&lt;br&gt;
The Invisibility Cloak. Namespaces are what provide Isolation. When you run an app in Docker, the Kernel puts a "&lt;strong&gt;wrapper&lt;/strong&gt;" around it called a Namespace.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How it works:&lt;/em&gt; It tricks the app into thinking it is the only process running on the whole computer. The app cannot see other apps, other files, or even the network of the main computer.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Why we need it:&lt;/em&gt; If App A doesn't know App B exists, it can’t interfere with it, steal its data, or crash it. It’s like being in a room with no windows or doors you don't even know there’s a building outside.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pillar 2: Strength (Cgroups)&lt;/strong&gt;&lt;br&gt;
The Resource Police. Cgroups (Control Groups) manage the Strength and limits of your app.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How it works:&lt;/em&gt; In a normal PC, if one app gets "&lt;strong&gt;hungry&lt;/strong&gt;," it can eat 100% of your RAM and CPU, making the rest of your computer lag or crash. Cgroups set strict rules: "You can only use 2GB of RAM and 10% of the CPU."&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Why we need it:&lt;/em&gt; It prevents one "greedy" process from starving the others. It ensures that every container has exactly what it needs to survive, but not a drop more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pillar 3: Speed (UnionFS &amp;amp; Layers)&lt;/strong&gt;&lt;br&gt;
The Transparent Sandwich. This is where Docker gets its Speed.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How it works:&lt;/em&gt; Instead of copying a whole Operating System for every app, Docker uses Layers. Think of it like a sandwich: the bottom bread is "&lt;strong&gt;Ubuntu&lt;/strong&gt;," the middle is "&lt;strong&gt;Python&lt;/strong&gt;," and the top is "&lt;strong&gt;Your Code&lt;/strong&gt;."&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Why we need it:&lt;/em&gt; If you have 10 apps that all use "Ubuntu," Docker only stores that bottom layer once. When you start a new app, it just snaps a new "&lt;strong&gt;Top Layer&lt;/strong&gt;" on. This makes starting an app take seconds instead of minutes.&lt;/p&gt;


&lt;h2&gt;
  
  
  The Form: Image vs. Container
&lt;/h2&gt;

&lt;p&gt;If the 3 Pillars are the "&lt;strong&gt;Physics&lt;/strong&gt;," how do we actually build something? This is where I have really struggled, so let’s break it down simply:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Image is your Instruction Book.&lt;/strong&gt; It isn’t "&lt;strong&gt;alive&lt;/strong&gt;." It is a read-only set of instructions (Layers) on how to build a room.&lt;br&gt;
&lt;strong&gt;Layer 1:&lt;/strong&gt; Lay the foundation (Linux/Python).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 2:&lt;/strong&gt; Bring in the tools (FastAPI/Libraries).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 3:&lt;/strong&gt; Add your personal stuff (Your Code).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Container: The Actual Room&lt;/strong&gt;&lt;br&gt;
The Container is the Actual Room built by following those instructions. When you "&lt;strong&gt;Run&lt;/strong&gt;" the book, Docker follows the layers and opens the door. Now the room is active and isolated.If you dont get it now dont worry we will cover this more in detail in  an incomming chapter.&lt;/p&gt;


&lt;h2&gt;
  
  
  The Final Quest: Jack’s "Ghost" Protocol
&lt;/h2&gt;

&lt;p&gt;Jack stood in front of the terminal, sweating. He wanted to prove to Rose that he wasn't just "&lt;strong&gt;running commands&lt;/strong&gt;" he was a Master of Dimensions.&lt;/p&gt;

&lt;p&gt;"&lt;em&gt;Watch this&lt;/em&gt;," he whispered. "&lt;em&gt;I’m going to step into another world where your files don't even exist&lt;/em&gt;."&lt;/p&gt;

&lt;p&gt;Now, it’s your turn to be Jack.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your Mission(If you choose to accept it)&lt;/strong&gt;:&lt;br&gt;
Open your terminal (Your "&lt;em&gt;Teleportation Device&lt;/em&gt;").&lt;/p&gt;

&lt;p&gt;Type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-it&lt;/span&gt; ubuntu bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you’re in, try to find your "&lt;strong&gt;Downloads&lt;/strong&gt;" folder or your "&lt;strong&gt;Pictures&lt;/strong&gt;."&lt;/p&gt;

&lt;p&gt;Type&lt;code&gt;ls&lt;/code&gt;(List files).&lt;/p&gt;

&lt;p&gt;Type &lt;code&gt;ps aux&lt;/code&gt; (See running processes).&lt;/p&gt;

&lt;p&gt;The Moment of Truth: Do you see your Spotify playing? Do you see your Chrome tabs? No. You are a ghost. You are in a Namespace wrapper. You have the Security of a vault and the Strength of a Cgroup bodyguard.&lt;/p&gt;

&lt;p&gt;If you successfully "&lt;strong&gt;teleported&lt;/strong&gt;" without crashing your laptop, leave a comment below saying: "&lt;em&gt;I'm in the Namespace, Jack!&lt;/em&gt;"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next Episode: The Secret Scroll&lt;/strong&gt;&lt;br&gt;
Jack has explored the "&lt;strong&gt;Apartment&lt;/strong&gt;," but now he wants to build his own. But he can't just wish it into existence he needs to write the Secret Scroll (The Dockerfile).&lt;/p&gt;

&lt;p&gt;In Episode 3, we learn the ancient language of FROM, COPY, and RUN to build our very own world from scratch.&lt;/p&gt;

&lt;p&gt;Don't let the Whale wait—see you in the next one!&lt;/p&gt;

</description>
      <category>docker</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Docker Chronicles Ep. 1: The Curse of the "Betrayed Friend"</title>
      <dc:creator>Fjr</dc:creator>
      <pubDate>Fri, 01 May 2026 06:23:25 +0000</pubDate>
      <link>https://forem.com/fjr/docker-chronicles-ep-1-the-curse-of-the-betrayed-friend-3l20</link>
      <guid>https://forem.com/fjr/docker-chronicles-ep-1-the-curse-of-the-betrayed-friend-3l20</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Long ago, the developer world lived in a state of constant distress. Hope was dimming under a legendary ancient curse: "But... It worked on my machine!"&lt;br&gt;
This is the story of how that curse was broken by a hero. A hero that arrived in a flash of light to save our sanity. This is the story of The Great Docker.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The Tragedy of Jack and Rose
&lt;/h2&gt;

&lt;p&gt;Jack spent weeks building a bombastic computer science project. It was perfect. It was beautiful. It worked like a charm on his laptop.&lt;/p&gt;

&lt;p&gt;His best friend, Rose, was so excited to work together. Jack handed over the code, and Rose tried to run it on her system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOM. 💥&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Errors everywhere. Red text scrolling like a digital nightmare. Her system didn't just crash; it felt like it gave up on life.&lt;/p&gt;

&lt;p&gt;Rose felt betrayed. "Jack, how could you do this to me? I thought we were partners! Why did you build something that won't work on my machine?"&lt;/p&gt;

&lt;p&gt;Jack felt so sorry; he was emotional. He had given her all the requirements, but he realized one thing: his system environment was different. Their worlds were incompatible. There wasn't enough room on the "system boat" for both of them.&lt;/p&gt;

&lt;p&gt;Just as Jack was about to give up, a hand touched his shoulder. A whale-shaped hero emerged from the mist: &lt;strong&gt;The Great Docker.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step into the Docker World:
&lt;/h2&gt;

&lt;p&gt;The "Apartment" Mystery When Jack first saw Docker, he scoffed. "Oh, so you’re just a Virtual Machine (VM)? Boring."&lt;/p&gt;

&lt;p&gt;Docker just smirked. "Step forward into my world, kid. Let me show you the difference."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;h3&gt;
  
  
  The Virtual Machine (The Separate Mansions)
&lt;/h3&gt;

&lt;p&gt;Imagine a giant piece of land (your Hardware). A VM is like building three separate, massive mansions on that land. Each mansion has its own foundation, its own kitchen, and its own security guard (Guest OS/Kernel). It’s heavy. It’s slow. Each mansion takes up its own huge chunk of memory and CPU. To give your app to a friend, you have to give them the entire mansion.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h3&gt;
  
  
  The Docker Way (The Smart Apartment Complex)
&lt;/h3&gt;

&lt;p&gt;Docker is different. Docker uses the Host Kernel (the "Main Infrastructure" of the city). Instead of building 3 mansions, Docker builds 3 Containers (Smart Apartments).They are Isolated—they don't contact each other—but they use the same city water and electricity (The Kernel). Because they don't need a separate Kernel for every container, they are lightweight and easy to share.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Secret Sauce:&lt;/strong&gt; Whether you are on Mac, Windows, or Linux, as long as you have the Linux kernel (or a way to talk to it), the container fits perfectly. You don't need a whole new computer you just need the container!&lt;/p&gt;

&lt;h2&gt;
  
  
  Why The Great Docker?
&lt;/h2&gt;

&lt;p&gt;Docker looks at Jack and says, "Kid, I’m not just a box. I’m a lifestyle change. Here is why every developer in the world is looking for me:"&lt;/p&gt;

&lt;h3&gt;
  
  
  The 3 Superpowers of the Great Docker
&lt;/h3&gt;

&lt;p&gt;1: &lt;strong&gt;The "It Works Everywhere" Shield&lt;/strong&gt;&lt;br&gt;
You know how Rose's system blasted? With me, that never happens. I package your code, your libraries, and your settings into a single Container. If it works on your laptop, it will work on Rose’s laptop, the production server, and even your grandma's old computer (if it runs Docker). No more environment drama!&lt;/p&gt;

&lt;p&gt;2: &lt;strong&gt;The "Flash" Speed (Efficiency)&lt;/strong&gt;&lt;br&gt;
Virtual Machines are like old, heavy giants. They take minutes to wake up because they have to start a whole Operating System. But me? I'm a ninja. I start in seconds. Because I share the Host Kernel, I don’t waste your RAM or CPU. You can run dozens of me without your laptop turning into a heater!&lt;/p&gt;

&lt;p&gt;3: &lt;strong&gt;The "Forbidden Room" (Isolation)&lt;/strong&gt;&lt;br&gt;
In the old days, if one project needed Python 2 and another needed Python 3, they would fight like cats and dogs until your system crashed. In the Docker world, each container is its own 'Forbidden Room.' What happens in Container A stays in Container A. No more 'Package Wars' on your main system!&lt;/p&gt;

&lt;p&gt;Now that you’ve met the Hero, it’s time to see if you have what it takes to join the crew. Complete these three tasks to earn your Episode 1 Badge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Task 1: The Summoning Ritual&lt;/strong&gt;&lt;br&gt;
You can’t fight the "It works on my machine" curse without the right weapon.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your Mission:&lt;/strong&gt; Install Docker and run this command in your terminal: docker run hello-world&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Goal:&lt;/strong&gt; If you see a message saying "Hello from Docker!", the Hero has officially entered your system. If it fails... well, you might still be on the sinking ship.&lt;/p&gt;

&lt;p&gt;Task 2: The "Betrayal" Confession&lt;br&gt;
We’ve all been Jack or Rose at some point.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Question:&lt;/strong&gt; What was the most "bombastic" project you ever built that completely exploded when you gave it to a friend or a teacher?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Action:&lt;/strong&gt; Tell your story in the comments. Let’s heal from our collective trauma together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Task 3: The Brain Teaser&lt;/strong&gt;&lt;br&gt;
In our story, we said Docker is like an Apartment Complex and a VM is like a Mansion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Riddle:&lt;/strong&gt; If you have a very tiny computer with very little RAM (electricity), which one would you choose to run 10 different apps? The Apartment or the Mansion? Why?&lt;br&gt;
📢 &lt;strong&gt;The "Cliffhanger"&lt;/strong&gt;&lt;br&gt;
Stay tuned for Episode 2: The Secret Scroll (Dockerfile), where we learn how Jack writes the magical instructions to bottle up his project so it never sinks again!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>docker</category>
      <category>programming</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
