<?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>DEV Community: ann</title>
    <description>The latest articles on DEV Community by ann (@akbarsiddic).</description>
    <link>https://dev.to/akbarsiddic</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%2F3793461%2F01b9298c-07ea-4cc4-abcc-59c38c4e83f0.jpeg</url>
      <title>DEV Community: ann</title>
      <link>https://dev.to/akbarsiddic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akbarsiddic"/>
    <language>en</language>
    <item>
      <title>Docker Fundamentals: The Tip of the Iceberg</title>
      <dc:creator>ann</dc:creator>
      <pubDate>Mon, 09 Mar 2026 22:27:57 +0000</pubDate>
      <link>https://dev.to/akbarsiddic/docker-fundamentals-the-tip-of-the-iceberg-m4g</link>
      <guid>https://dev.to/akbarsiddic/docker-fundamentals-the-tip-of-the-iceberg-m4g</guid>
      <description>&lt;h3&gt;
  
  
  Docker Fundamentals: The Tip of the Iceberg
&lt;/h3&gt;

&lt;p&gt;In this &lt;strong&gt;AI Era&lt;/strong&gt;, where everything is "AI this" and "AI that," I see that the industry needs people who can manage, plan, and monitor system architecture more than ever before.&lt;/p&gt;

&lt;p&gt;That's why I chose to learn something new — SRE / DevOps / Solution Architecture — and containerizing apps is just the tip of the iceberg.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Docker&lt;/strong&gt; is a tool that lets you containerize your app, so that the infamous &lt;em&gt;"It works on my machine"&lt;/em&gt; problem can finally disappear. And this is what I learned about the fundamentals of Docker.&lt;/p&gt;

&lt;p&gt;If you look at the Docker docs, there's a lot to explore — but honestly, it's not that much to grasp the fundamentals. It basically comes down to looping back and forth between four things: &lt;strong&gt;images&lt;/strong&gt;, &lt;strong&gt;containers&lt;/strong&gt;, &lt;strong&gt;Dockerfile&lt;/strong&gt;, and &lt;strong&gt;basic Docker commands&lt;/strong&gt;.&lt;/p&gt;




&lt;h4&gt;
  
  
  What is a Docker Image?
&lt;/h4&gt;

&lt;p&gt;A Docker Image is simply a packaged app. The analogy I like to use: a Docker Image is like a &lt;strong&gt;video game disc&lt;/strong&gt;, and a Docker Container is like a &lt;strong&gt;PlayStation&lt;/strong&gt; — it's where you run that disc. You can play the same game on a different PlayStation using the same disc, right? Same idea here. If a Docker Image is the packaged app, the Docker Container is the instance that runs it.&lt;/p&gt;




&lt;h4&gt;
  
  
  Docker Container vs Virtual Machine
&lt;/h4&gt;

&lt;p&gt;You might be thinking — isn't a Docker container just like a virtual machine? The answer is actually &lt;strong&gt;no&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A Docker container runs on top of the &lt;strong&gt;Host OS&lt;/strong&gt; and shares the host's processes, while a Virtual Machine runs directly on the hardware. The most visible difference between the two is &lt;strong&gt;size&lt;/strong&gt; — because a VM contains a full OS, it's much larger than a Docker container. Docker images and containers are typically &lt;strong&gt;megabytes (MB)&lt;/strong&gt; in size, while VMs are usually &lt;strong&gt;gigabytes (GB)&lt;/strong&gt;.&lt;/p&gt;




&lt;h4&gt;
  
  
  What is a Dockerfile?
&lt;/h4&gt;

&lt;p&gt;A &lt;code&gt;Dockerfile&lt;/code&gt; is a new kind of required file that will live in your project. It contains a &lt;strong&gt;set of instructions&lt;/strong&gt; to containerize your project.&lt;/p&gt;

&lt;p&gt;You might be wondering — how exactly does this solve the &lt;em&gt;"It works on my machine"&lt;/em&gt; problem? Here's the thing: with a &lt;code&gt;Dockerfile&lt;/code&gt;, you build your own project image and share it. Inside the Dockerfile, you specify what environment the image will run on — it can be &lt;code&gt;node:xx-alpine&lt;/code&gt;, &lt;code&gt;ubuntu:xx&lt;/code&gt;, or many others. With those instructions starting from &lt;code&gt;FROM&lt;/code&gt;, you can build and share your project image, and other engineers can run your project &lt;strong&gt;without having to replicate your local setup&lt;/strong&gt;.&lt;/p&gt;




&lt;h4&gt;
  
  
  Basic Docker Commands
&lt;/h4&gt;

&lt;p&gt;To run an image (whether one you built or one you pulled from &lt;strong&gt;DockerHub&lt;/strong&gt;), just run:&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="o"&gt;{&lt;/span&gt;image_name&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To see the list of currently running containers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or to see all containers (including stopped ones):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker ps &lt;span class="nt"&gt;-a&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To build an image from your project (make sure your &lt;code&gt;Dockerfile&lt;/code&gt; exists), run this in your project directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build &lt;span class="nt"&gt;-t&lt;/span&gt; my-project &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will build a Docker image with &lt;code&gt;my-project&lt;/code&gt; as the image name.&lt;/p&gt;




&lt;p&gt;When I said Docker is just the tip of the iceberg, I wasn't lying — because within Docker itself, you can orchestrate images, manage the network between containers, manage storage and data inside containers, and much more.&lt;/p&gt;

&lt;p&gt;I'll cover that in &lt;strong&gt;next week's post about Docker Compose&lt;/strong&gt; — stay tuned!&lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
      <category>containers</category>
    </item>
  </channel>
</rss>
