<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by KhyatiSoni on Medium]]></title>
        <description><![CDATA[Stories by KhyatiSoni on Medium]]></description>
        <link>https://medium.com/@khyatisoni1102?source=rss-85b517820a26------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OMDq5lD-B29GPeM3KuzGEA.jpeg</url>
            <title>Stories by KhyatiSoni on Medium</title>
            <link>https://medium.com/@khyatisoni1102?source=rss-85b517820a26------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:13:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khyatisoni1102/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Docker Fundamentals: A Beginner's Guide Using Real-World Examples]]></title>
            <link>https://medium.com/@khyatisoni1102/docker-fundamentals-a-beginners-guide-using-real-world-examples-eae1e190e083?source=rss-85b517820a26------2</link>
            <guid isPermaLink="false">https://medium.com/p/eae1e190e083</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[KhyatiSoni]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 09:12:05 GMT</pubDate>
            <atom:updated>2026-06-06T09:12:05.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Fundamentals for someone who has never used it</h3><p>You are working on a tech project with your colleagues, and you have finally made a working feature. But when someone else on the team tried to see the same feature running, they got an error. But it works on your machine, right? This, my friend, is a classic example of “the environmental problem”.</p><p>You and your colleague have different local environments, and even with similar code , similar files, and a similar <em>will to finish work</em> , you end up seeing different results. That’s because your computer has different environments than your buddy’s.</p><p>Usually, in a “But it works on my machine” problem, there is one or more version mismatches, dependencies, different OS behavior , environmental variables, etc. So if your project is, say , a Node.js backend system with Node version 20 and your colleague is working with version 14, then there is some or a whole part of the code that may not work on their device. This is exactly where Docker comes in to help.</p><p>For the issue we just discussed, your go-to fix would have been asking your colleague to update the node version and restart the project, run it again, but imagine if you have a team of hundreds of developers with not just node version mismatch but other dependency issues as well. Without Docker, every machine must manually recreate the environment to get the project running. <strong>Docker helps you to describe the environment once and run it consistently anywhere.</strong></p><p>Now, my friend , since you are aware of why Docker came into being, let’s dive into some of its technical details. You can say Docker is a developer tool that lets you build, ship, and run applications in isolated, portable units. A tiny thought in your brain must be going through your mind as “But isn’t this the same as a virtual machine?” Not exactly, but they solve a similar problem. A virtual machine is like having a full computer inside your computer, as it has its own OS, kernel , and memory usage. It has stronger isolation and a slower startup. However, Docker has its two building blocks called images and containers, out of which a container uses the shared host kernel, has faster startup, and less overhead. A container is like an isolated room in the same building, whereas a VM is a fully rented apartment with its own wiring, plumbing, etc.</p><p><strong>IMAGES AND CONTAINERS</strong><br>I just mentioned another term out of nowhere , Images. Let’s understand the relationship between containers and images as they go hand-in-hand. Images are like blueprints that define how the environment will be. An image is essentially a saved template. It can be associated with how classes are defined in programming. Containers, on the other hand, are running instances of an image. It can be thought of as an object instance. You can make multiple containers out of the same image. So, if a container crashes, we can create another from the same image. Hence, images are supposed to be reproducible, and containers should be disposable.</p><p><strong>BASE IMAGE</strong> <br>Now, let’s understand the concept of base image. Before you finalize your project image , you start with a base image. For example, for your Node project , you wouldn’t want to manually install Linux + Node from scratch every time. Hence, you start with a Node base image, which is an official Docker image for Node.js. At the end , your final image is a combination of the base image + dependencies installed + source code.</p><p><strong>DOCKERFILE</strong> <br>A Dockerfile is the main recipe for building an image. While containers run images, Dockerfiles build them.. It would define areas like what commands start the app, or which environment variables should exist by default, and which files to be copied, etc.</p><p><strong>BUILD TIME VS RUN TIME </strong><br>Okay, buddy, so this is a major concept. Build time happens when Docker creates the image, like compiling JavaScript, installing npm dependencies, copying source code, or package files. Meanwhile, the Runtime begins when the API server starts. It’s taken into consideration when the API server starts , environment variables are read , or when the application starts listening on a port. Basically, when the app is running live in a container.</p><p><strong>FINAL MENTAL MODEL WITH EXAMPLE</strong></p><p>Let’s map it all in our heads through a cooking example.</p><p>A Dockerfile is our Recipe that has all the ingredients needed (Node.js, source code, dependencies) and the steps to make the dish (copy files, install packages, start application). A recipe tells you what ingredients are needed and what steps to follow. A Dockerfile does exactly that.</p><p>The image is our recipe card. It’s written down , saved, and can be stored , copied, and shared. However, it isn’t food yet. In a similar manner, an image is built, stored , shared but it isn’t running yet.</p><p>The container is our actual dish. From one recipe of Lasagna, we can make multiple servings simultaneously at any time, discard the ones we no longer want, and make another following the recipe again in the future. If someone drops a plate of lasagna on the floor, you don’t rewrite the recipe. You simply cook another one using the same recipe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UM4MW96wLZTaSw84AeOeOQ.png" /></figure><p>So, if you came into this article with no idea what Docker was and can now connect its fundamental concepts using a real-world example, then congratulations, you are no longer a complete Docker newbie.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eae1e190e083" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>