<?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 Gayathri Asuri on Medium]]></title>
        <description><![CDATA[Stories by Gayathri Asuri on Medium]]></description>
        <link>https://medium.com/@gayathriasuri?source=rss-1ee036137cb9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QD_8mThRXHZm2jnzB6AvHQ.jpeg</url>
            <title>Stories by Gayathri Asuri on Medium</title>
            <link>https://medium.com/@gayathriasuri?source=rss-1ee036137cb9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:40:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gayathriasuri/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 Volumes Explained: Why Your Data Disappears]]></title>
            <link>https://medium.com/@gayathriasuri/docker-volumes-explained-why-your-data-disappears-3c2ccfa08afe?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c2ccfa08afe</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[persistent-volume]]></category>
            <category><![CDATA[docker-volume]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 13:40:39 GMT</pubDate>
            <atom:updated>2026-10-19T13:40:39.248Z</atom:updated>
            <content:encoded><![CDATA[<p>I lost data twice before I finally understood Docker volumes.</p><p>Not once. Twice.</p><p>The first time, I thought it was a fluke. The second time, I sat there staring at an empty database and realized this isn’t a bug. I’m doing something wrong.</p><p>Here’s what I wish someone had told me before I wasted hours rebuilding test data.</p><blockquote><strong>Why Data Disappears</strong></blockquote><p>A Docker container has a writable layer. That’s where your application creates and modifies files while it runs.</p><p>Say your app stores uploads here: <strong>/app/uploads</strong></p><p>If those files exist only in that writable layer, removing the container removes the files too.</p><p>Creating a new container from the same image doesn’t bring them back. The image holds the instructions and filesystem layers used to build a container it does not preserve data written by a previous container.</p><p>That’s fine for temporary files. But what about customer records, database files, or generated reports?</p><p>You don’t want those vanishing every time a container is recreated.</p><p><strong>The solution is to keep data outside the container’s writable layer.</strong></p><p>That’s exactly what a Docker volume does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IU0E1__h2Y3Tsee-L-NVUA.png" /><figcaption><em>Containers are temporary. Volumes are persistent.</em></figcaption></figure><blockquote><strong>What a Docker Volume Is</strong></blockquote><p>A Docker volume is storage managed by Docker that exists independently of a container’s lifecycle.</p><p>Three things to keep straight:</p><ul><li><strong>Image</strong> — the packaged application environment</li><li><strong>Container</strong> — the running instance of that image</li><li><strong>Volume</strong> — storage that can be reused by containers</li></ul><p>The container can be removed. The volume stays.</p><p>Create a new container, attach the same volume, and the application sees the data that was already there.</p><p>The key idea: <strong>The container runs the application. The volume keeps the data separate.</strong></p><p>Think of it as a whiteboard and a notebook. The container is the whiteboard write on it, wipe it, gone. The volume is the notebook on the shelf still there when you come back.</p><blockquote><strong>Creating and Using a Volume</strong></blockquote><p><strong>Step 1: Create a volume</strong></p><p><strong><em>“docker volume create app-data”</em></strong></p><p>Confirm it exists: <strong><em>docker volume ls</em></strong></p><p>Output:</p><p><strong><em>DRIVER VOLUME NAME</em></strong></p><p><strong><em>local app-data</em></strong></p><p>Docker has created it. It isn’t attached to anything yet.</p><p><strong>Step 2: Run a container with the volume attached</strong></p><p><strong><em>docker run -it — name volume-demo -v app-data:/data ubuntu bash</em></strong></p><p>What each part does:</p><ul><li>-it →interactive terminal</li><li>— name volume-demo → name for the container</li><li>-v app-data:/data → mount the volume at /data inside the container</li><li>ubuntu → the image</li><li>bash → open a shell</li></ul><p>Inside the container, write a file:</p><p><strong><em>echo “My data survives container removal” &gt; /data/example.txt</em></strong></p><p><strong><em>cat /data/example.txt</em></strong></p><p>The text comes back. But the file went into the volume, not the container’s temporary layer.</p><p><strong>Step 3: Remove the container</strong></p><p><strong><em>exit</em></strong></p><p><strong><em>docker rm volume-demo</em></strong></p><p>The container is gone. Check the volume: <strong><em>docker volume ls</em></strong></p><p>app-data is still there. Removing a container does not remove a named volume.</p><p><strong>Step 4: Attach the same volume to a new container</strong></p><p><strong><em>docker run — rm -v app-data:/data ubuntu cat /data/example.txt</em></strong></p><p>Output: My data survives container removal</p><p>New container. Same volume. Same data.</p><p>That’s the entire purpose of volumes, shown in four commands.</p><blockquote><strong>Understanding the -v Syntax</strong></blockquote><p>You’ll see this often:<strong><em> -v app-data:/data</em></strong></p><p>The format:</p><p><strong><em>-v &lt;volume-name&gt;:&lt;container-path&gt;</em></strong></p><ul><li>app-data is the volume</li><li>/data is where it appears inside the container</li></ul><p>There’s also a longer form:</p><p><strong><em>docker run — rm \</em></strong></p><p><strong><em>— mount source=app-data,target=/data \</em></strong></p><p><strong><em>ubuntu ls /data</em></strong></p><p>Both attach a named volume. The mount form spells out source and target, which helps when commands get long.</p><blockquote><strong>Named vs Anonymous Volumes</strong></blockquote><p><strong>Named volumes:</strong></p><p>You pick the name:</p><p><strong><em>docker volume create app-data</em></strong></p><p><strong><em>docker run -v app-data:/data ubuntu</em></strong></p><p>Easy to identify, inspect, and reuse.</p><p><strong>Anonymous volumes:</strong></p><p>No name given: <strong><em>docker run -v /data ubuntu</em></strong></p><p>Docker creates a volume for you, but it gets a random ID instead of a readable name. Harder to track down later.</p><p>If you intend to keep the data, name your volumes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZ8-R0KwusBVplbGiUD0fw.png" /></figure><blockquote><strong>Common Commands</strong></blockquote><p><strong>Create → </strong>docker volume create app-data</p><p><strong>List → </strong>docker volume ls</p><p><strong>Inspect</strong> (shows driver and mountpoint details) → docker volume inspect app-data</p><p><strong>Remove → </strong>docker volume rm app-data</p><p><strong>Clean up unused volumes → </strong>docker volume prune</p><p>By default, prune targets unused anonymous volumes. Add -a and it includes unused named volumes too. On a machine with real data, read that command twice before running it.</p><blockquote><strong>Where You’d Use Volumes</strong></blockquote><p><strong>Databases</strong></p><p>The official MySQL image stores its database files in /var/lib/mysql.</p><p><strong><em>docker volume create mysql-data</em></strong></p><p><strong><em>docker run -d -name mysql-db -v mysql-data:/var/lib/mysql </em></strong>-e MYSQL_ROOT_PASSWORD=change-this-password <strong><em>mysql</em></strong></p><p>The important line:<strong><em> mysql-data → /var/lib/mysql</em></strong></p><p>Remove the container, the volume remains. A new MySQL container reusing that volume picks up the existing data.</p><p>This is an illustration, not a full production setup. Use proper secret management rather than real passwords in commands.</p><p><strong>Uploaded files and reports</strong></p><p>Applications that generate reports or store documents need those files to survive container replacement. A volume keeps them outside the container’s temporary layer.</p><p><strong>Local development</strong></p><p>You stop, remove, and recreate containers constantly while testing. A named volume lets you keep selected data separate so you’re not starting from zero each time.</p><blockquote><strong>Two Things Beginners Miss</strong></blockquote><p><strong>Removing a container is not removing its volume</strong></p><p><strong><em>→docker rm volume-demo # removes the container</em></strong></p><p><strong><em>→docker volume rm app-data # removes the volume and its data</em></strong></p><p>These are different commands with different consequences. The second one can delete exactly what you were trying to protect.</p><p><strong>Mounting a volume can hide files already in the container</strong></p><p>If an image already has files under /app/data and you mount a volume there, the volume takes precedence at that location. Files that were there can seem to vanish while the mount is active.</p><p>For a new, empty volume, Docker normally copies existing files from the image at that mount destination into the volume. Mount options can change this behavior.</p><p>Knowing this saves an hour of confusion the first time it happens.</p><blockquote><strong>The Main Thing to Remember</strong></blockquote><p>Docker makes it easy to create and replace containers. That’s the point.</p><p>But application data often needs a different lifecycle.</p><p>A container might be temporary. The data your application stores might not be.</p><p>That’s why volumes matter. They separate persistent data from the container that uses it, so you can replace containers freely without losing what’s inside.</p><p>Once that distinction clicks, volumes stop feeling like an extra step and start feeling obvious.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c2ccfa08afe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerfile Explained: How Docker Knows What to Build]]></title>
            <link>https://medium.com/@gayathriasuri/dockerfile-explained-how-docker-knows-what-to-build-1c3a2a4f2b75?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c3a2a4f2b75</guid>
            <category><![CDATA[docker-build]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 07:14:54 GMT</pubDate>
            <atom:updated>2026-07-20T07:14:54.153Z</atom:updated>
            <content:encoded><![CDATA[<p>In my previous article, we learned why Docker exists.</p><p>It solves one of the biggest problems in software development: <em>“</em><strong><em>It works on my machine.</em></strong><em>”</em></p><p>Docker packages an application along with everything it needs so it behaves the same everywhere.</p><p>But that raises another question.</p><p><strong><em>How does Docker know what to include inside that package?</em></strong></p><p>How does it know:</p><ul><li>which programming language to use</li><li>which dependencies to install</li><li>where your application lives</li><li>which command should start the application</li></ul><p>The answer is surprisingly simple — “A <strong>Dockerfile”</strong></p><blockquote><strong>Imagine Setting Up a Project Without Instructions</strong></blockquote><p>Imagine your teammate asks you to run their application.</p><p>They tell you:</p><ul><li>Install Python.</li><li>Install these libraries.</li><li>Create this folder.</li><li>Copy these files.</li><li>Run this command.</li></ul><p>Now imagine another teammate joining next week.</p><p>You explain the same steps again.</p><p>A month later, someone forgets one dependency.</p><p>Another developer installs a different version of Python.</p><p>Suddenly…</p><p>The application behaves differently again.</p><p>Not because the code changed. Because everyone followed slightly different setup steps.</p><p>Instead of remembering those instructions manually, Docker lets us write them down once.</p><p>That file is called a **<strong><em>Dockerfile**</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Vs1NUSDVsN_dsULJyjVJug.png" /></figure><blockquote><strong>What Is a Dockerfile?</strong></blockquote><p>A Dockerfile is simply a text file that contains instructions for building a Docker image.</p><p>Think of it like a recipe.</p><p>A recipe tells you: what ingredients you need, what order to follow, and how to prepare the final dish.</p><p>A Dockerfile does exactly the same thing.</p><p>It tells Docker: which base image to use, which files to copy, which software to install, and how to start the application.</p><p>Instead of every developer setting things up manually, Docker follows the same recipe every single time.</p><blockquote><strong>The Docker Build Process</strong></blockquote><p>Before learning the instructions inside a Dockerfile, it’s helpful to understand what actually happens behind the scenes.</p><p>Dockerfile</p><p>↓</p><p>docker build</p><p>↓</p><p>Docker Image</p><p>↓</p><p>docker run</p><p>↓</p><p>Running Container</p><p>Here’s what happens:</p><ol><li>You write a Dockerfile.</li><li>Docker reads every instruction inside it.</li><li>Docker builds an image.</li><li>That image can then be used to create one or many containers.</li></ol><p>This flow is important because many beginners confuse Dockerfiles, images, and containers.</p><ul><li><strong><em>*A Dockerfile creates an image**.</em></strong></li><li><strong><em>**An image creates a container**.</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*YiNg7XU2QaNRWIM8eiYc9w.png" /></figure><blockquote><strong>A Simple Dockerfile</strong></blockquote><p>Let’s look at a simple example.</p><p><strong><em>FROM python:3.9</em></strong></p><p><strong><em>WORKDIR /app</em></strong></p><p><strong><em>COPY . .</em></strong></p><p><strong><em>RUN pip install -r requirements.txt</em></strong></p><p><strong><em>CMD [“python”, “app.py”]</em></strong></p><p>At first glance, it may look confusing.</p><p>But Docker simply reads these instructions from top to bottom.</p><p>Let’s understand each one.</p><p><strong><em>“FROM — Where Everything Starts”</em></strong></p><p>→ FROM python:3.9</p><p>Every Docker image starts with a base image.</p><p>In this example, Docker downloads an official Python 3.9 image.</p><p>Think of it as starting with a clean machine that already has Python installed.</p><p>Without a base image, Docker wouldn’t know where to begin.</p><p><strong><em>“WORKDIR — Setting the Working Folder”</em></strong></p><p>→ WORKDIR /app</p><p>This creates (if it doesn’t already exist) and switches Docker into the /app directory.</p><p>You can think of it like running: ‘cd /app’ in Linux.</p><p>Every instruction after this runs inside that directory unless another WORKDIR is specified.</p><p><strong><em>“COPY — Bringing Your Application Inside”</em></strong></p><p>→ COPY . .</p><p>This copies your project files from your local machine into the container.</p><p>The first . means: <strong>Current folder on your computer</strong></p><p>The second . means: <strong>Current working directory inside the container</strong> (/app).</p><p>Without this step, your application code would never reach the container.</p><p><strong><em>“RUN — Installing Dependencies”</em></strong></p><p>→ RUN pip install -r requirements.txt</p><p>The RUN instruction executes commands while Docker is building the image.</p><p>Here, Docker installs all Python dependencies listed in requirements.txt.</p><p>An important thing to remember is: <strong>RUN executes only during image creation. </strong>It does <strong>not</strong> run every time the container starts.</p><p><strong><em>“CMD — Starting the Application”</em></strong></p><p>→ CMD [“python”, “app.py”]</p><p>Once the image has been built, Docker still needs to know what to do when someone starts a container.</p><p>That’s what CMD is for.</p><p>When you run: <em>docker run myapp</em></p><p>Docker automatically executes: <em>python app.py </em>inside the container.</p><p>You can think of CMD as the application’s default startup command.</p><p>Finally, Docker packages everything into a new image.</p><p>Whenever someone runs that image, the application starts exactly the same way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hqBYXxH-EqatZD85U9ESNA.png" /></figure><blockquote><strong>Building the Image</strong></blockquote><p>Once your Dockerfile is ready, you build an image using:</p><p><strong><em>docker build -t myapp .</em></strong></p><p>Let’s understand this command.</p><p><em>docker build</em><strong> → </strong>Builds a Docker image.</p><p><em>-t myapp</em> → Assigns a name (tag) to the image.</p><p>. → This tells Docker that the Dockerfile is located in the current directory.</p><p>Many beginners accidentally forget the final dot (.), which causes the build to fail.</p><blockquote><strong>Running the Container</strong></blockquote><p>Once the image has been created, starting the application is simple.</p><p><strong><em>docker run myapp</em></strong></p><p>Docker creates a new container from the image and executes the command specified in CMD.</p><p>Remember the flow:</p><p>Dockerfile</p><p>↓</p><p>Image</p><p>↓</p><p>Container</p><p>This is the heart of Docker.</p><blockquote><strong>Common Beginner Mistakes</strong></blockquote><p>Everyone makes mistakes while learning Docker.</p><p>Here are some of the most common ones.</p><p><strong><em>→Forgetting the build context</em></strong></p><p><em>docker build -t myapp</em></p><p>This is incomplete.</p><p>The correct command is: <strong><em>docker build -t myapp .</em></strong></p><p>That final dot matters.</p><p><strong>→Forgetting to copy project files</strong></p><p>If you skip: COPY . .</p><p>your container won’t contain your application.</p><p><strong>→ Missing dependency files</strong></p><p>If requirements.txt isn’t copied into the image before running: <strong><em>RUN pip install -r requirements.txt</em></strong><em> , </em>the build will fail.</p><blockquote><strong>Dockerfile Best Practices</strong></blockquote><p>As your projects grow, a few simple habits can make your Dockerfiles cleaner and easier to maintain.</p><p>✔ Use official base images whenever possible.</p><p>✔ Keep your images as small as possible.</p><p>✔ Create a .dockerignore file to exclude unnecessary files.</p><p>✔ Avoid storing passwords or secrets inside a Dockerfile.</p><p>✔ Write Dockerfiles that anyone on your team can understand.</p><p>A clean Dockerfile makes debugging and deployment much easier.</p><blockquote><strong>Final Thoughts</strong></blockquote><p>A Dockerfile isn’t just another configuration file.</p><p>It’s the blueprint that tells Docker exactly how your application should be built and run.</p><p>Once you write that blueprint, every developer, every server, and every deployment follows the same instructions.</p><p>→ No guesswork.</p><p>→ No manual setup.</p><p>→ No “it works on my machine.”</p><p>Just a consistent environment, every single time.</p><p>If you’re learning Docker, understanding Dockerfiles is one of the biggest steps you can take.</p><p>Once this concept clicks, Docker becomes much easier to understand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c3a2a4f2b75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is Docker? Why “It Works on My Machine” Is No Longer an Excuse]]></title>
            <link>https://medium.com/@gayathriasuri/what-is-docker-why-it-works-on-my-machine-is-no-longer-an-excuse-89cb0b9b047a?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/89cb0b9b047a</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 11:53:25 GMT</pubDate>
            <atom:updated>2026-07-05T11:53:25.318Z</atom:updated>
            <content:encoded><![CDATA[<p>A few years ago, I kept hearing the same phrase:</p><p><strong><em>“It works on my machine.”</em></strong></p><p>At first, it sounded harmless.</p><p>A developer would build an application, test it locally, and everything worked perfectly.</p><p>Then the application would be deployed somewhere else.</p><p>Suddenly:</p><ul><li>the application wouldn’t start</li><li>a dependency was missing</li><li>a different software version was installed</li><li>or the environment behaved completely differently</li></ul><p>The code hadn’t changed. The environment had.</p><p>And that was often enough to cause problems.</p><p>This is one of the biggest reasons <strong>Docker</strong> became an essential tool in modern software development.</p><blockquote><strong>The Problem Before Docker</strong></blockquote><p>Imagine two developers working on the same application.</p><p><strong>Developer A has:</strong></p><ul><li>Python 3.11</li><li>specific libraries installed</li><li>certain environment variables configured</li><li>custom settings on their laptop</li></ul><p><strong>Developer B has:</strong></p><ul><li>Python 3.9</li><li>different library versions</li><li>different operating system settings</li><li>different local configurations</li></ul><p>The same application can behave differently on both systems.</p><p>Now imagine deploying that application to a server.</p><p>That’s a third environment.</p><p>More differences. More surprises.</p><p>This is where teams started hearing: <strong><em>“It worked on my machine.”</em></strong></p><p>Not because the code was wrong. But because the environments were different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*c1iLGX-JIPztIRhkT0OFYw.png" /><figcaption><em>Same application. Different environments. Different results.</em></figcaption></figure><blockquote><strong>What Docker Solves</strong></blockquote><p>Docker solves this by packaging <strong>everything an application needs</strong> to run.</p><p>Instead of moving only the code, Docker packages:</p><ul><li>the application</li><li>its dependencies</li><li>required libraries</li><li>runtime versions</li><li>configurations</li></ul><p>The result is a <strong>portable package</strong> that can run consistently almost anywhere.</p><p>Whether it’s: your laptop, a test server, a production server, or the cloud,</p><p>the application runs inside the <strong>same environment</strong>.</p><p>That consistency is Docker’s biggest advantage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*OmA1EtCcehrOe5fSmFj23A.png" /></figure><blockquote><strong>Think of Docker Like a Shipping Container</strong></blockquote><p>Before shipping containers existed, transporting goods was complicated.</p><p>Every item had to be handled differently. Loading and unloading took time. Things often got damaged.</p><p>Shipping containers changed that.</p><p>No matter what was inside, everything travelled in the same standardized box.</p><p><strong>Docker containers follow a similar idea.</strong></p><p>No matter what application is inside, it runs in a standardized environment.</p><p>That’s why containers became so popular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*WvXwoiTDf7ZCFzH6GkHkNQ.png" /></figure><blockquote><strong>What Is a Container?</strong></blockquote><p>A container is an <strong>isolated environment</strong> where an application runs.</p><p>It contains the application, its dependencies, runtime requirements, and supporting files.</p><p>The container behaves the same regardless of where it runs.</p><p>This consistency is what developers and operations teams value most.</p><blockquote><strong>Docker Images vs Containers</strong></blockquote><p>One of the first concepts that confuses beginners is the difference between an image and a container.</p><p>A simple way to think about it:</p><p><strong>Image</strong></p><p>An image is a blueprint.</p><p>It contains everything needed to run an application.</p><p>Think of it like a recipe.</p><p><strong>Container</strong></p><p>A container is a running instance of that image.</p><p>Think of it like the actual dish prepared from the recipe.</p><p>You create containers from images.</p><p>One image can create multiple containers.</p><p>Understanding this distinction makes Docker much easier to learn later.</p><blockquote><strong>Why Not Just Use Virtual Machines?</strong></blockquote><p>This is a common question.</p><p>Virtual Machines also provide isolated environments. But they include an <strong>entire operating system</strong>.</p><p>That makes them larger and heavier.</p><p>Docker containers <strong>share the host operating system</strong> and only package what the application needs.</p><p>As a result containers start faster, consume fewer resources, and are easier to move between systems.</p><blockquote><strong>Docker Hub</strong></blockquote><p>Once you start using Docker, you’ll often hear about <strong>Docker Hub.</strong></p><p>Docker Hub is a<strong> public registry</strong> that stores Docker images.</p><p>Think of it like GitHub for Docker images.</p><p>Instead of cloning source code, you download ready-made images.</p><p>For example, if you need:</p><ul><li>Nginx, Ubuntu, Redis or MySQL</li></ul><p>you can pull official images directly from Docker Hub.</p><blockquote><strong>Dockerfile — Defining Your Environment</strong></blockquote><p>A Dockerfile is a text file with instructions to build an image.</p><p>dockerfile:</p><p><strong><em>FROM python:3.9</em></strong></p><p><strong><em>WORKDIR /app</em></strong></p><p><strong><em>COPY . .</em></strong></p><p><strong><em>RUN pip install -r requirements.txt</em></strong></p><p><strong><em>CMD [“python”, “app.py”]</em></strong></p><p>This file tells Docker:</p><ol><li>Start with Python 3.9</li><li>Create a working directory /app</li><li>Copy your code inside</li><li>Install dependencies</li><li>Run your application</li></ol><p>Once you have a Dockerfile, anyone can build the same image and run the application in a consistent environment</p><blockquote><strong>Common Docker Commands</strong></blockquote><p><strong>docker pull nginx </strong>: Download an image from Docker Hub<br><strong>docker images</strong> : List downloaded images<br><strong>docker run nginx</strong> : Start a container<br><strong>docker ps</strong> : List running containers<br><strong>docker stop &lt;container&gt; </strong>: Stop a container<br><strong>docker rm &lt;container&gt;</strong> : Delete a container<br><strong>docker rmi &lt;image&gt; :</strong> Delete an image</p><blockquote><strong>Real-World Example</strong></blockquote><p>Imagine a Node.js application.</p><p><strong>Without Docker:</strong></p><ul><li>every developer must install Node.js, everyone must use compatible versions, servers must be configured correctly, and differences can cause unexpected issues.</li></ul><p><strong>With Docker:</strong></p><p><strong><em>docker run -d -p 3000:3000 node:18</em></strong></p><p>The environment is defined once, everyone uses the same setup, and deployments become much more predictable.</p><p>Instead of configuring every machine manually, you simply run the same container everywhere.</p><p>The environment comes with it.</p><blockquote><strong>Why Docker Became Essential in DevOps</strong></blockquote><p>Modern software moves quickly.</p><p>Applications are deployed frequently. Teams work across different operating systems. Cloud environments change constantly.</p><p>Docker helps create consistency across all of them.</p><p>Local development — — — — — → Same environment everywhere<br>CI/CD pipelines — — — — — — — → Run tests in isolated containers<br>Microservices — — — — — — —→ Run each service in its own container<br>Deployments — — — — — — — -→ Same container from dev to prod<br>Scaling — — — — — — — — — — → Spin up more containers easily</p><p>That’s why Docker became one of the foundational tools in modern DevOps practices.</p><blockquote><strong>Final Thoughts</strong></blockquote><p>When people first learn Docker, they often focus on commands.</p><p>But <strong>Docker </strong>is really a solution to a much older problem.</p><p>The problem was never just running applications.</p><p>The challenge was running them <strong>consistently everywhere</strong>.</p><p>Docker helps solve that.</p><p>And once you understand the problem Docker was created to address, the rest of Docker starts making much more sense.</p><p>Start small. Run your first container. Then containerize your own app.</p><p>The shift is worth it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89cb0b9b047a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Thought Git Merge and Rebase Were the Same…. They’re Not….]]></title>
            <link>https://medium.com/@gayathriasuri/i-thought-git-merge-and-rebase-were-the-same-theyre-not-b9f4d116663e?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9f4d116663e</guid>
            <category><![CDATA[git-rebase]]></category>
            <category><![CDATA[git-merge]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[version-control]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Mon, 25 May 2026 05:53:22 GMT</pubDate>
            <atom:updated>2026-05-25T05:53:22.237Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>“Just merge it.”</strong></blockquote><blockquote><strong>“No, rebase it first.”</strong></blockquote><p>If you’ve been on a development team, you’ve probably heard this conversation.</p><p>Both commands seemed to do the same thing.</p><p>After all, both bring changes from one branch into another… right?</p><p>That’s what I thought too.</p><p>But once I started working with larger repositories and team workflows, I realized something important:</p><p>👉 Merge and rebase may solve a similar problem, but they do it in completely different ways.</p><p>And understanding that difference makes Git much easier to reason about.</p><blockquote><strong>What Problem Do Both Solve?</strong></blockquote><p>Imagine you are working on a feature branch.</p><p>While you are building your feature, someone else merges new changes into main.</p><p>Now your branch is behind.</p><p>Something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*s97XaY7UaJQ3wGerUZHWPg.png" /></figure><p>Your branch has commits:</p><ul><li>C</li><li>F</li></ul><p>But main has moved forward with:</p><ul><li>D</li><li>E</li></ul><p>Before merging your feature later, you need to bring your branch up to date.</p><p>This is where developers usually say:</p><p>👉 “Merge main into your branch”</p><p>or</p><p>👉 “Rebase your branch onto main”</p><p>That’s the moment confusion starts.</p><p>Because both approaches seem similar at first.</p><p>But internally, Git handles them very differently.</p><blockquote><strong>What git merge Actually Does</strong></blockquote><p>Merge takes all the changes from both branches and <strong>combines them</strong> into a single commit that ties them together.</p><p>When you run:</p><p><strong><em>git checkout feature<br>git merge main</em></strong></p><p>Git creates a new merge commit that connects both histories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*4UxF04DWuupdI_3T_exHJw.png" /></figure><p><strong>That final M is the merge commit.</strong></p><p>Git is basically saying:</p><p><strong>“These two lines of work are now combined.”</strong></p><blockquote><strong>Why Teams Like Merge</strong></blockquote><p>Merge preserves history exactly as it happened.</p><p>You can clearly see:</p><ul><li>when branches diverged,</li><li>when they came together,</li><li>and how development progressed over time.</li></ul><p>This is one reason merge is considered safer and easier for beginners.</p><p>Nothing gets rewritten.</p><p>History remains untouched.</p><blockquote><strong>The Downside of Merge</strong></blockquote><p>The problem appears over time.</p><p>In large projects with many developers, repeated merge commits can make history noisy.</p><p>You may see logs filled with:</p><p><em>→ Merge branch ‘main’ into feature<br> → Merge branch ‘feature’ into main<br> → Merge branch ‘release’</em></p><p>Eventually, commit history becomes harder to follow.</p><p>Especially when debugging older changes.</p><p>That’s where rebase starts becoming useful.</p><blockquote><strong>What git rebase Actually Does</strong></blockquote><p>Rebase takes your commits and moves them on top of the latest branch history.</p><p>Instead of combining histories, it rewrites your branch as if you started from the newest version of main.</p><p>When you run:</p><p><strong><em>git checkout feature<br>git rebase main</em></strong></p><p>→ Git temporarily removes your commits<br> → Updates your branch<br> → Then reapplies your commits one by one</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sLSn6JA1FbOWGoHLS8qm6w.png" /></figure><p>Notice something important:</p><p>The commits changed from:</p><ul><li>C</li><li>F</li></ul><p>to:</p><ul><li>C’</li><li>F’</li></ul><p>That apostrophe matters.</p><p>Git actually recreated those commits.</p><p>This is why people say:</p><p>👉 “Rebase rewrites history.”</p><blockquote><strong>Why Teams Like Rebase</strong></blockquote><p>Rebase creates a cleaner, more linear commit history.</p><p>Instead of seeing many merge commits, history looks like one straight timeline.</p><p>In large repositories, this matters more than beginners realize.</p><p>Clean history makes it easier to:</p><ul><li>review code,</li><li>debug issues,</li><li>understand timelines,</li><li>and track changes later.</li></ul><p>This is one reason many teams prefer rebasing feature branches before opening Pull Requests.</p><blockquote><strong>So Which One Is Better?</strong></blockquote><p>This is where many people get stuck.</p><p>They assume: “One must be correct.”</p><p>But in reality:</p><p>👉 Merge and rebase solve different workflow problems.</p><p><em>Merge focuses on:</em></p><ul><li>preserving history</li><li>keeping everything exactly as it happened.</li></ul><p><em>Rebase focuses on:</em></p><ul><li>keeping history clean</li><li>making timelines easier to follow.</li></ul><p>Neither is universally better.</p><p>Good teams choose based on workflow and collaboration style.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*lJlk93iEUt2GhCDreUjSMA.png" /></figure><blockquote><strong>The Most Important Rule About Rebase</strong></blockquote><p>This is the one thing every beginner should remember:</p><p><strong><em>👉 Do not rebase shared branches.</em></strong></p><p>Why?</p><p>Because rebase rewrites commit history.</p><p>If other developers already pulled those commits, rebasing can create confusion and conflicts for everyone else.</p><p>Safe:<br> ✅ rebasing your own local feature branch</p><p>Risky:<br> ❌ rebasing branches other people are actively using</p><p>This is why many teams are careful about where rebasing is allowed.</p><blockquote><strong>What About Merge Conflicts?</strong></blockquote><p>Both merge and rebase can create conflicts.</p><p>But the experience feels slightly different.</p><p>With merge: you usually resolve conflicts once.</p><p>With rebase: Git may stop multiple times while replaying commits.</p><p>That can feel more tedious.</p><p>But the final history often looks cleaner.</p><blockquote><strong>What Most Teams Actually Do</strong></blockquote><p>Interestingly, many teams use both.</p><p>A common workflow looks like this:</p><p>👉 Rebase your local feature branch to stay updated cleanly<br> 👉 Merge the feature branch into main</p><p>This gives:</p><ul><li>cleaner feature history</li><li>while still keeping collaborative merges safe.</li></ul><blockquote><strong>The Real Mindset Shift</strong></blockquote><p>For a long time, I thought merge and rebase were just “different commands that do similar things.”</p><p>Now I see them differently.</p><p>They are really two different approaches to managing project history.</p><p>Merge says: “Preserve the full story.”</p><p>Rebase says: “Keep the story clean and linear.”</p><p>Once I understood that, Git history finally started making sense.</p><p>And honestly, that removed a lot of the confusion I used to have around branching workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9f4d116663e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Thought Pull Requests Were Just Formalities. I Was Wrong.]]></title>
            <link>https://medium.com/@gayathriasuri/i-thought-pull-requests-were-just-formalities-i-was-wrong-35f3cb76bcec?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/35f3cb76bcec</guid>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[pull-request]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Mon, 18 May 2026 08:25:18 GMT</pubDate>
            <atom:updated>2026-05-18T08:25:18.291Z</atom:updated>
            <content:encoded><![CDATA[<p>The first time someone reviewed my code, I was nervous.</p><blockquote>Not because the feature was difficult.<br>Not because the code didn’t work.<br>But because someone else was about to read it.</blockquote><p>Until then, Git felt simple to me:</p><ul><li>create a branch</li><li>write code</li><li>commit</li><li>push</li></ul><p>So, when I heard, “Create a Pull Request and assign it for review,” I honestly thought it was just a company process. Some extra step before merging.</p><p>I was wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SuO_q8Xn6QUDzlfURW-z-w.png" /></figure><blockquote><strong>The moment it clicked</strong></blockquote><p>A small feature I worked on was ready.</p><p>It worked on my machine.<br>No errors. No warnings. Everything looked fine.</p><p>I created a Pull Request confidently.</p><p>A little later, I got comments like:</p><ul><li>“This can fail if the API returns null.”</li><li>“What happens if two users trigger this at the same time?”</li></ul><p>I remember staring at those comments thinking, “I didn’t even think about that.”</p><p>That’s when it clicked.</p><p>Pull Requests are not there to slow developers down. They exist because one person can miss things another person notices immediately.</p><blockquote><strong>What a Pull Request really is</strong></blockquote><p>At a technical level, a Pull Request is simple:</p><p>You are asking, “Can we merge my changes into the main codebase?”</p><p>But in practice, it is much more than that.</p><p>A Pull Request is:</p><ul><li>a discussion</li><li>a review</li><li>a quality check</li><li>and sometimes a learning session</li></ul><p>Good teams do not use PRs just to approve code. They use them to improve thinking.</p><blockquote><strong>Why beginners get it wrong</strong></blockquote><p>Most beginners think:</p><p>“If the code works, the job is done.”</p><p>But in real projects, working code is only part of the story.</p><p>Reviewers also think about:</p><ul><li>readability</li><li>maintainability</li><li>edge cases</li><li>performance</li><li>security</li><li>and long-term impact</li></ul><p>That is why two lines of code can trigger a ten-minute discussion.</p><p>Not because the code is bad.<br>Because software is collaborative.</p><blockquote><strong>What happens after you create one</strong></blockquote><p>From the outside, it looks simple:</p><ul><li>push code</li><li>create PR</li><li>get approval</li><li>merge</li></ul><p>But behind the scenes, reviewers are asking:</p><ul><li>Will this break existing functionality?</li><li>Can another engineer understand this later?</li><li>Is this solving the right problem?</li><li>What happens in failure scenarios?</li></ul><p>That review process helps teams prevent future production issues.</p><blockquote><strong>One comment changed how I write code</strong></blockquote><p>I once received a review comment that said:</p><p>“This works, but it will be hard to maintain later.”</p><p>At first, I did not understand it. The feature worked perfectly.</p><p>But later I realized something important:</p><p>Code is read far more often than it is written.</p><p>A Pull Request is not only about making code run. It is about making code understandable for the next person.</p><p>Sometimes that next person is future you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*roCAp8nK3jhf8suAIZISPg.png" /></figure><blockquote><strong>What good PRs look like</strong></blockquote><p>The best PRs are usually:</p><ul><li>small</li><li>clear</li><li>easy to review</li><li>and easy to understand</li></ul><p>Good PR descriptions matter too.</p><p>Compare this:</p><ul><li>“fixed stuff”</li><li>“Added validation for the login form and handled null API responses”</li></ul><p>One creates confusion.<br>The other creates clarity.</p><blockquote><strong>Final thought</strong></blockquote><p>I used to think Pull Requests were just a process teams followed because they had to.</p><p>Now I see them differently.</p><p>They are one of the reasons modern software teams can collaborate without chaos.</p><p>Not because they make code perfect.<br>But because they make people think together before changes become permanent.</p><p>And honestly, that is where some of the best engineering happens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35f3cb76bcec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Branching Made Simple (Without Breaking Your Code)]]></title>
            <link>https://medium.com/@gayathriasuri/git-branching-made-simple-without-breaking-your-code-baddd7263111?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/baddd7263111</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[branching-strategy]]></category>
            <category><![CDATA[version-control]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Fri, 08 May 2026 13:15:10 GMT</pubDate>
            <atom:updated>2026-05-08T13:15:10.350Z</atom:updated>
            <content:encoded><![CDATA[<p>“I just merged my changes… and now everything is broken.”</p><p>If you’ve worked with Git, you’ve probably seen something like this.</p><p>One person adds a feature.<br>Someone else updates the same file.<br>Everything works fine separately… but breaks when combined.</p><p>That’s exactly why branching exists — to prevent this kind of chaos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*rgb-z9viRjfYo67zeoT6lw.png" /></figure><blockquote><strong>Why Branching Exists</strong></blockquote><p>Imagine making every change directly in <strong>main</strong>.</p><p>Every edit would:</p><ul><li>affect everyone</li><li>increase the chance of breaking something</li><li>make collaboration stressful</li></ul><p>Now imagine this instead:</p><p>👉 You create your own workspace<br>👉 You make changes safely<br>👉 You merge them only when they’re ready</p><p>Instead of working on the same code, everyone works in isolation.</p><p>That’s what branching gives you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*xVAanDnN6nwNJmnN1yb9dQ.png" /></figure><blockquote><strong>What Is a Branch?</strong></blockquote><p>A branch is a <strong>separate line of development</strong> inside the same project.</p><p>Think of it like this:</p><ul><li>main = stable version</li><li>feature branch = your safe workspace</li></ul><p>You can use branches to:</p><ul><li>build features</li><li>fix bugs</li><li>test ideas</li></ul><p>👉 independently, without impacting others</p><blockquote>Before You Start — Update Your Main Branch</blockquote><p>Always start by updating your main branch to avoid conflicts later:</p><p><strong><em>git checkout main<br>git pull</em></strong></p><p>Now you’re ready to create a new branch.</p><blockquote><strong>Real Example</strong></blockquote><p>Let’s say you’re building a login feature.</p><p>Instead of editing main directly, you create a branch:</p><p><strong><em>git checkout -b login-feature</em></strong></p><p>This command:</p><ul><li>creates a new branch</li><li>switches you to it</li></ul><p>Now you can work, commit, and test freely without touching main.\</p><p>To see all your branches:</p><p><strong><em>git branch</em></strong></p><p>The current branch will have a * next to it.</p><p>Example output: This helps you know which branch you’re currently on.</p><p><strong><em>* login-feature<br> main</em></strong></p><blockquote><strong>Merging Changes Back</strong></blockquote><p>When your feature is ready:</p><p><strong><em>git checkout main<br>git merge login-feature</em></strong></p><p>This brings your branch changes into the main branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*U_LnZPleSKSmqIeiioceQQ.png" /></figure><blockquote><strong>What Is a Merge Conflict?</strong></blockquote><p>A merge conflict happens when Git sees changes in the same part of the same file and can’t decide which version to keep.</p><p>This usually happens when two people edit the same lines.</p><p>You might see something like this:</p><p><strong><em>&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD<br> console.log(“Hello from main”)<br> =======<br> console.log(“Hello from feature”)<br> &gt;&gt;&gt;&gt;&gt;&gt;&gt; login-feature</em></strong></p><p>Your job is to:</p><ul><li>choose the correct code</li><li>remove the conflict markers</li><li>save the file</li><li>stage it again</li><li>complete the merge</li></ul><blockquote><strong>Why Branching Matters</strong></blockquote><p>Branching helps teams:</p><ul><li>work in parallel</li><li>avoid overwriting each other’s changes</li><li>test safely</li><li>merge with more confidence</li></ul><p>Without branches, collaboration gets messy very quickly.</p><blockquote><strong>Common Beginner Mistakes</strong></blockquote><p>❌ Working directly on main<br> 👉 Risky and harder to manage</p><p>❌ Forgetting to get the latest changes<br> 👉 Conflicts show up later</p><p>❌ Panicking during merge conflicts<br> 👉 Normal part of teamwork — fix them step by step</p><blockquote><strong>Final Thoughts</strong></blockquote><p>Branching is where Git starts to feel powerful.</p><p>The mindset shift is this:</p><p>👉 From “everyone edits the same code”<br> 👉 To “everyone works safely in parallel”</p><p>This is what makes teamwork in Git actually possible.</p><p>Once this clicks, Git feels much less scary and much more predictable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=baddd7263111" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Basics That Actually Matter]]></title>
            <link>https://medium.com/@gayathriasuri/git-basics-that-actually-matter-ef1b9c923466?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef1b9c923466</guid>
            <category><![CDATA[git-commands]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Tue, 05 May 2026 11:32:41 GMT</pubDate>
            <atom:updated>2026-05-05T11:32:41.968Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first started learning <strong>Git</strong>, I did what most beginners do.</p><p>I memorized commands.</p><p><strong><em>git add .<br>git commit -m “message”<br>git push</em></strong></p><p>I could run them.<br>But I didn’t really understand them.</p><p>And the moment something went wrong… I was stuck.</p><p>That’s when I realized:</p><p>👉 Git is not about memorizing commands<br>👉 It’s about understanding what you’re doing</p><p>In this post, I’ll break down the <strong>few Git basics that actually matter</strong>;; the ones you’ll use every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*6J9KWDc0_8x-sxls6dli9Q.png" /><figcaption><em>Memorizing commands without understanding = confusion</em></figcaption></figure><blockquote><strong>The Only Flow You Need to Understand</strong></blockquote><p>Before commands, understand this flow:</p><p>👉 You make changes<br>👉 You save them (commit)<br>👉 You share them (push)</p><p>That’s the core of <strong><em>Git</em></strong>.</p><p>Everything else builds on top of this.</p><blockquote><strong>What Actually Happens Behind the Scenes (The 3 Stages)</strong></blockquote><p>To really understand Git, you need to know one thing:</p><p>→ Your changes don’t go directly into a commit.</p><p>They move through <strong>three stages</strong>:</p><p><strong>1. Working Directory</strong></p><p>This is where you write your code.</p><p>→ Files you edit are here<br> → Changes are NOT saved in Git yet</p><p><strong>2. Staging Area</strong></p><p>This is where you prepare changes.</p><p>When you run: <strong><em>git add file.txt</em></strong></p><p>→ You’re telling Git: “Include this in the next commit.”</p><p><strong>3. Repository</strong></p><p>This is where your commits are stored.</p><p>When you run: <strong><em>git commit -m “message”</em></strong></p><p>→ Your changes are permanently saved in Git history.</p><p><strong>Simple Flow</strong></p><p>👉 Working Directory → Staging Area → Repository</p><p>Or in commands: git add → git commit → git push</p><blockquote><strong>Why This Matters</strong></blockquote><p>Most beginner confusion comes from this.</p><p>👉 “Why didn’t my changes get committed?”<br>👉 “Why is my file not included?”</p><p>Because they skipped a step.</p><p>Once you understand these stages, Git becomes predictable.</p><p><strong>1. git init — Start Tracking Your Project</strong></p><p>This is where everything begins.</p><p><strong><em>git init</em></strong></p><p>👉 What it does:</p><ul><li>Turns your folder into a Git repository</li><li>Starts tracking changes</li></ul><p>Think of it like: “From now on, keep track of everything happening here.”</p><p><strong>2. git status — What’s Going On?</strong></p><p>This is one of the most useful commands.</p><p><strong><em>git status</em></strong></p><p>👉 It tells you:</p><ul><li>What files changed</li><li>What’s staged</li><li>What’s not staged</li></ul><p>If you’re confused, run this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*866MkGQ6TpRtiePNNH9QUg.png" /></figure><p><strong>3. git add — Prepare Changes</strong></p><p><strong><em>git add file.txt</em></strong></p><p>👉 What it does:</p><ul><li>Moves changes to a “staging area”</li></ul><p>Think of it like: “I want to include this in my next save.”</p><p>Shortcut (use carefully): <strong><em>git add .</em></strong></p><p><strong>4. git commit — Save Your Work</strong></p><p><strong><em>git commit -m “Add login feature”</em></strong></p><p>👉 What it does:</p><ul><li>Saves a snapshot of your changes</li></ul><p>This is like hitting <strong>save</strong>, but with history.</p><p>Good commits:</p><ul><li>Small</li><li>Clear</li><li>Meaningful</li></ul><p>Bad commits:</p><ul><li>“fix stuff”</li><li>“changes”</li></ul><p><strong>5. git log — See History</strong></p><p><strong><em>git log</em></strong></p><p>👉 Shows:</p><ul><li>All commits</li><li>Who made them</li><li>When they were made</li></ul><p>This is your <strong>timeline of changes</strong>.</p><p><strong>6. git push — Share Your Code</strong></p><p><strong><em>git push</em></strong></p><p>👉 What it does:</p><ul><li>Uploads your commits to a remote repo (like GitHub)</li></ul><p>Think of it like: “Make my work visible to others.”</p><h4><strong>Putting It All Together</strong></h4><p>Here’s the real workflow:</p><p><strong>git init<br>git status<br>git add .<br>git commit -m “Initial commit”<br>git push</strong></p><p>That’s it.</p><p>This is what you’ll use again and again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*rA6oalMZUMr3f6Sw8n0jYw.png" /></figure><blockquote><strong>Common Beginner Mistakes</strong></blockquote><p>Let’s make this real.</p><p><strong>❌ Mistake 1: Skipping git status</strong></p><p>👉 Result: confusion</p><p><strong>❌ Mistake 2: Using git add . blindly</strong></p><p>👉 You commit things you didn’t intend</p><p><strong>❌ Mistake 3: Bad commit messages</strong></p><p>👉 No idea what changed later</p><blockquote><strong>The Right Way to Learn Git</strong></blockquote><p>Don’t try to learn everything at once.</p><p>Start with:</p><p>👉 init<br> 👉 status<br> 👉 add<br> 👉 commit<br> 👉 push</p><p>Use them daily.</p><p>Break things. Fix them. Learn from them..</p><p>That’s how Git starts making sense.</p><p><strong>Final Thoughts</strong></p><p>Git feels confusing at first because it’s different.</p><p>But once you understand the flow:</p><p><strong><em>Change → Stage → Commit → Push</em></strong></p><p>Everything becomes easier.</p><p>You don’t need to learn everything on day one.<br>Start with the basics. The rest will follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef1b9c923466" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Git Exists (And Why Beginners Struggle With It)]]></title>
            <link>https://medium.com/@gayathriasuri/why-git-exists-and-why-beginners-struggle-with-it-28c232897c5c?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/28c232897c5c</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[git-push-and-pull]]></category>
            <category><![CDATA[git-commit]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Mon, 04 May 2026 06:43:46 GMT</pubDate>
            <atom:updated>2026-05-04T06:43:46.181Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>“I just overwrote someone else’s code.”</strong></p><p>Someone once told me this…completely stressed.</p><p>They had made a change, pushed it, and suddenly something stopped working.<br>Turns out, another developer had updated the same file… and the changes got overwritten.</p><p>No history. No backup. No easy way to go back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Iaf8yRNZahMjey3MOK-fTw.png" /><figcaption><em>When you realize your changes just wiped out hours of work</em></figcaption></figure><p>That’s the moment many people realize:</p><p>👉 Managing code without version control doesn’t scale.</p><p>That’s exactly why Git exists. Not as a tool — but as a solution to a very real problem.</p><blockquote><strong>What Problem Does Git Solve?</strong></blockquote><p>Before tools like Git became common, teams worked in messy ways:</p><ul><li>Multiple copies of the same project</li><li>Files named like final_v2_latest_REAL_final.js</li><li>Manual backups</li><li>No clear history of changes</li></ul><p>If something broke, figuring out <em>what changed</em> and <em>who changed it</em> was painful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*sdS_qyUAGxUHdVLdCwqE9g.png" /><figcaption><em>Before Git, this is exactly how things looked</em></figcaption></figure><p>Git solves this by giving you:</p><p>👉 A complete history of your project<br> 👉 The ability to track every change<br> 👉 A safe way to collaborate without overwriting each other</p><blockquote><strong>What Is Git (In Simple Terms)?</strong></blockquote><p>Think of Git as a <strong>time machine for your code</strong>.</p><p>Every time you make a meaningful change, Git lets you save a snapshot.</p><p>You can:</p><ul><li>Go back to any previous version</li><li>See exactly what changed</li><li>Work on new features without affecting the main code</li></ul><p>Instead of guessing, you always have clarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Sn646pCfnVgkJy0ilhuQHg.png" /></figure><blockquote><strong>Why Beginners Find Git Confusing</strong></blockquote><p>If Git is so useful, why does it feel hard at first?</p><p>Because the concepts are different from what most people are used to.</p><p>Here are the common struggles:</p><p><strong>1. Too many new terms</strong></p><p>commit, branch, merge, rebase…</p><p>It feels like learning a new language.</p><p><strong>2. Fear of breaking things</strong></p><p>“What if I mess up the repo?”</p><p>This fear is real — especially when working in teams.</p><p><strong>3. Commands without context</strong></p><p>People memorize commands like:</p><p><strong>git add .<br>git commit -m “msg”<br>git push</strong></p><p>…but don’t understand what’s actually happening.</p><p>That’s where confusion starts.</p><blockquote><strong>The Real Way to Understand Git</strong></blockquote><p>Instead of memorizing commands, think in terms of <strong>what you’re trying to do</strong>.</p><p>Every Git action is usually one of these:</p><p>👉 Save changes (commit)<br> 👉 Work separately (branch)<br> 👉 Combine work (merge)<br> 👉 Share code (push/pull)</p><p>That’s it.</p><p>Once this clicks, Git becomes much easier.</p><blockquote><strong>A Simple Real-World Flow</strong></blockquote><p>Let’s say you’re working on a feature.</p><ol><li>You write code</li><li>You save it with Git (commit)</li><li>You continue making changes</li><li>You push your work to a shared repo</li></ol><p>Now your changes are:</p><ul><li>Tracked</li><li>Safe</li><li>Shareable</li></ul><p>No more guessing. No more overwriting.</p><blockquote><strong>Why Git Matters (Especially in DevOps)</strong></blockquote><p>If you’re working with:</p><ul><li>CI/CD pipelines</li><li>Infrastructure as Code</li><li>Automation scripts</li><li>Team-based projects</li></ul><p>Git is everywhere.</p><p>It’s not optional — it’s foundational.</p><blockquote><strong>Final Thoughts</strong></blockquote><p>Git is not just a tool. It’s a way of working.</p><p>The biggest shift is this:</p><p>👉 From “saving files”<br> 👉 To “tracking changes with confidence”</p><p>You don’t need to master everything on day one.</p><p>Start small:</p><ul><li>Understand what a commit is</li><li>Understand why history matters</li><li>Get comfortable saving your work</li></ul><p>Everything else builds on top of that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28c232897c5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate Repetitive Tasks Using Cron Jobs]]></title>
            <link>https://medium.com/@gayathriasuri/automate-repetitive-tasks-using-cron-jobs-619ba7986a1a?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/619ba7986a1a</guid>
            <category><![CDATA[crontab]]></category>
            <category><![CDATA[cronjob-scheduler]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cron]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 09:56:07 GMT</pubDate>
            <atom:updated>2026-04-26T09:56:07.778Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>“I wish this script would just run by itself every morning.”</strong></p><p>I’ve said this more times than I can count.</p><p>Manual backups. Scheduled cleanups. Daily reports. Recurring checks.</p><p>Doing them by hand every time gets boring fast.</p><p>That’s where <strong><em>cron </em>jobs</strong> come in.</p><blockquote><strong>What Are Cron Jobs?</strong></blockquote><p>A cron job is a scheduled task that runs automatically on Linux.</p><p>Think of it like setting an alarm.</p><ul><li>You set the time.</li><li>You define what should happen</li><li>The system does the rest without you touching it.</li></ul><p>Cron is the built-in scheduler. A “cron job” is a single task you schedule.</p><blockquote><strong>Why Cron Jobs Matter</strong></blockquote><p>In real systems, automation is not optional.</p><p>Cron jobs help you:</p><ul><li>Save time on repetitive tasks</li><li>Avoid human errors</li><li>Ensure tasks run consistently</li><li>Automate things even when you’re offline</li></ul><p>If you’re starting with Linux, this is one of the easiest ways to move from <strong>Manual work → Automation mindset</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*w6GihmdO_YzpK6gMWLQVqg.png" /></figure><blockquote><strong>How Cron Works (Simple View)</strong></blockquote><p>Linux runs a background service called <strong><em>cron</em></strong>.</p><p>It continuously checks a schedule and executes tasks at the right time.</p><p>You define these tasks using a file called <strong>crontab</strong>.</p><blockquote><strong>Understanding Cron Syntax</strong></blockquote><p>A cron job looks like this:</p><p><strong>┌───────── minute (0–59)</strong></p><p><strong>│ ┌─────── hour (0–23)</strong></p><p><strong>│ │ ┌───── day of month (1–31)</strong></p><p><strong>│ │ │ ┌─── month (1–12)</strong></p><p><strong>│ │ │ │ ┌─ day of week (0–6, Sunday = 0)</strong></p><p><strong>│ │ │ │ │</strong></p><p><strong>* * * * * command_to_run</strong></p><p><strong>Example</strong></p><p>0 0 * * * /home/user/backup.sh</p><p>👉 This means:</p><ul><li>Run the script every day</li><li>At 12:00 AM</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Lii4Nwob6-zfNkRS1vioOA.png" /></figure><blockquote><strong>Common Cron Examples</strong></blockquote><p>Run every 5 minutes:</p><p>→ <strong>*/5 * * * * /script.sh</strong></p><p>Run every day at 2 AM:</p><p>→ <strong>0 2 * * * /script.sh</strong></p><p>Run every Sunday:</p><p>→ <strong>0 0 * * 0 /script.sh</strong></p><blockquote><strong>How to Create a Cron Job</strong></blockquote><p>Open crontab:</p><p><strong>“crontab -e”</strong></p><p>Add your job:</p><p>→<strong> */5 * * * * /home/user/script.sh</strong></p><p>Save and exit.</p><p>Your job is now scheduled and will run automatically.</p><blockquote><strong>Useful Cron Commands</strong></blockquote><ol><li>crontab -e :: Edit your cron jobs</li><li>crontab -l :: List all your cron jobs</li><li>crontab -r :: Remove all your cron jobs</li><li>crontab -u username -e :: Edit another user’s crontab (requires sudo}</li></ol><blockquote><strong>Real-World Example</strong></blockquote><p>Let’s say your log files keep growing.</p><p>Instead of cleaning them manually:</p><p>Create a script:</p><p><strong>“rm -rf /var/log/*.log”</strong></p><p><em>⚠️ Be careful with rm -rf. Always verify the path before running.</em></p><p>Schedule it:</p><p><strong>“0 1 * * * /cleanup.sh”</strong></p><p>👉 Now logs are cleaned automatically every day at 1 AM.</p><blockquote><strong>Common Mistakes (Very Important)</strong></blockquote><p><strong>1. Script not running?</strong></p><p>Always use full paths:</p><p><strong>/usr/bin/python3 script.py</strong></p><p>Cron does not use your normal environment variables.</p><p><strong>2. No output or errors visible?</strong></p><p>Redirect output to a file:</p><p><strong>*/5 * * * * /script.sh &gt;&gt; /tmp/cron.log 2&gt;&amp;1</strong></p><p>Helps in debugging.</p><p><strong>3. Permission issues</strong></p><p>Make sure your script is executable:</p><p><strong>chmod +x script.sh</strong></p><blockquote><strong>Final Thoughts</strong></blockquote><p>Cron jobs are simple , but powerful.</p><p>They are often the first real step into automation.</p><p>You don’t need complex tools to start.</p><p>Sometimes, one small cron job can save hours of manual work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=619ba7986a1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Logs: The Silent Story Behind Every Issue]]></title>
            <link>https://medium.com/@gayathriasuri/linux-logs-the-silent-story-behind-every-issue-1b489ce29f69?source=rss-1ee036137cb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b489ce29f69</guid>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[log-files]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[Gayathri Asuri]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 15:44:01 GMT</pubDate>
            <atom:updated>2026-04-21T15:44:01.184Z</atom:updated>
            <content:encoded><![CDATA[<p>When something breaks in Linux, the answer is usually already in the logs.<br><strong> A service goes down. A deployment fails. A user says, <em>“It was working yesterday.”</em></strong></p><p>Logs are like the <strong>black box</strong> of a system. They tell you what happened, when it happened, and sometimes even why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*LSE-hu2mezyVQMwP5jrwxQ.png" /></figure><blockquote><strong>Why Logs Matter</strong></blockquote><p>Logs are not just files sitting in /var/log. They are one of the most important tools for:</p><ul><li>Debugging application failures</li><li>Tracking system errors</li><li>Investigating security issues</li><li>Understanding service behavior</li></ul><p>If you work with Linux, reading logs is not optional. It’s a core skill.</p><blockquote><strong>Where to look first</strong></blockquote><p>Linux has many logs, and that can feel overwhelming.</p><p>In real scenarios, I usually start with:</p><ul><li><strong>/var/log/syslog or /var/log/messages, depending on the distribution </strong>→ General system activity</li><li><strong>journalctl</strong> → systemd service logs</li><li><strong>/var/log/auth.log </strong>→ login and authentication issues</li><li><strong>application-specific logs </strong>→ Nginx, Apache, Docker, your app</li></ul><blockquote><strong><em>Note: Log file locations can vary by Linux distribution. Always check whether your system uses traditional log files, rsyslog, or systemd journald.</em></strong></blockquote><p>The goal is not to memorize everything.</p><p>The goal is to know <strong>where to start</strong>.</p><blockquote><strong>How to Debug Using Logs (Step by Step)</strong></blockquote><p><strong>Step 1: </strong>Watch logs in real time</p><p><strong>‘“‘tail -f /var/log/syslog””</strong></p><p><strong>Or on systemd-based systems:</strong></p><p><strong>‘“‘journalctl -f ’’’’</strong></p><p>Then reproduce the issue. Watch what appears. This is often the fastest way to see what’s happening.</p><p><strong>Step 2: </strong>Search for errors</p><p>Logs can be huge. Don’t read everything line by line.</p><p><strong>‘“‘grep -i error /var/log/syslog’’’’</strong></p><p><strong>‘“‘grep -i failed /var/log/syslog’’’’</strong></p><p><strong>‘“‘grep -i exception /var/log/syslog’’’’</strong></p><p>The -i flag makes the search case-insensitive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*yF3YLU--CCKLZh89yeMaVA.png" /><figcaption><em>Searching for errors with grep -i</em></figcaption></figure><p><strong>Step 3: </strong>Look at the context</p><p>Don’t just read one line. Look at the lines before and after the error.</p><p><strong>‘“‘ grep -n -C 3 “error” /var/log/syslog ’’’’</strong></p><ul><li>-n shows line numbers<strong>’’’’</strong></li><li>-C 3 shows 3 lines before and after</li></ul><p><strong>Step 4: </strong>Check service logs (systemd)</p><p>If a specific service is failing:</p><p><strong>‘“‘ journalctl -u nginx ’’’’</strong></p><p><strong>‘“‘ journalctl -u docker ’’’’</strong></p><p>For more detailed logs, you can use:</p><p><strong>‘“‘ journalctl -xe ’’’’</strong></p><p><strong>Step 5:</strong> Correlate with time</p><p>Most logs include timestamps. Ask yourself:</p><ul><li>When did the issue start?</li><li>Was there a deployment at that time?</li><li>Did anything change just before the failure?</li></ul><p>Time correlation is often the fastest way to find the root cause.</p><blockquote><strong>Real-world example</strong></blockquote><p>Suppose a service fails after a restart.</p><p>Instead of guessing, I check:</p><ul><li>Did the service start?</li><li>Is there a permission issue?</li><li>Is a port already in use?</li><li>Did a config change break it?</li></ul><p>Most of the time, logs quickly point in the right direction.</p><blockquote><strong>What good troubleshooting looks like</strong></blockquote><p>Good troubleshooting is not about reading every line.</p><p>It’s about: 👉 finding the signal in the noise</p><p>Beginners guess.<br>Experienced engineers read logs.</p><blockquote><strong>Look for Patterns</strong></blockquote><p>Instead of reading everything, focus on common patterns:</p><ul><li>Permission denied</li><li>Connection refused</li><li>No space left on device</li><li>Timeout</li><li>Crash loop</li><li>Out of memory</li></ul><p>Logs become powerful when you learn to spot these signals.</p><blockquote><strong>Useful Commands Quick Reference</strong></blockquote><p>· tail -f app.log → Watch logs live</p><p>· tail -n 50 app.log → Last 50 lines</p><p>· grep -i error app.log → Search for errors</p><p>· grep -n -C 3 “error” app.log → Search with context</p><p>· less app.log → Scroll through logs</p><p>· journalctl -xe → Systemd logs with details</p><p>· journalctl -u nginx -f → Follow a specific service log</p><blockquote><strong>Final Thoughts</strong></blockquote><p>Logs don’t fix problems. They help you understand them and understanding is where real debugging begins.</p><p>The more comfortable you become with logs, the faster you debug and the more confident you become when things break.</p><p>When something fails, don’t panic.</p><p>Start with the logs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b489ce29f69" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>