<?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 Pratham on Medium]]></title>
        <description><![CDATA[Stories by Pratham on Medium]]></description>
        <link>https://medium.com/@prxyzm?source=rss-a71ca083a18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*o1pjxxpvqNybyJXU</url>
            <title>Stories by Pratham on Medium</title>
            <link>https://medium.com/@prxyzm?source=rss-a71ca083a18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:40:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prxyzm/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 All Commands In ONEVIEW]]></title>
            <link>https://medium.com/@prxyzm/docker-all-commands-in-oneview-6ff98d6d564e?source=rss-a71ca083a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff98d6d564e</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Pratham]]></dc:creator>
            <pubDate>Fri, 14 Mar 2025 12:10:06 GMT</pubDate>
            <atom:updated>2025-03-14T12:10:06.998Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Docker Basics</h3><p>These commands help you set up Docker and manage basic container operations.</p><h3>1.1 Docker Version &amp; System Info</h3><pre>docker --version       # Check Docker version<br>docker info            # Display system-wide information about Docker</pre><h3>1.2 Working with Docker Images</h3><pre>docker search &lt;image_name&gt;        # Search for an image on Docker Hub<br>docker pull &lt;image_name&gt;          # Download an image from Docker Hub<br>docker images                     # List all downloaded images<br>docker rmi &lt;image_id&gt;             # Remove an image<br>docker rmi $(docker images -q)    # Remove all images</pre><h3>1.3 Working with Docker Containers</h3><pre>docker run &lt;image_name&gt;                     # Run a container from an image<br>docker run -d &lt;image_name&gt;                  # Run in detached mode (background)<br>docker run -it &lt;image_name&gt; /bin/bash       # Start container with interactive shell<br>docker ps                                   # List running containers<br>docker ps -a                                # List all containers (running + stopped)<br>docker stop &lt;container_id&gt;                  # Stop a running container<br>docker start &lt;container_id&gt;                 # Start a stopped container<br>docker restart &lt;container_id&gt;               # Restart a container<br>docker kill &lt;container_id&gt;                  # Force stop a running container<br>docker rm &lt;container_id&gt;                    # Remove a stopped container<br>docker rm $(docker ps -aq)                  # Remove all containers</pre><h3>1.4 Container Logs &amp; Inspection</h3><pre>docker logs &lt;container_id&gt;         # View logs of a container<br>docker inspect &lt;container_id&gt;      # Inspect details of a container<br>docker stats                       # View real-time stats of running containers<br>docker top &lt;container_id&gt;          # Show running processes inside a container<br>docker events                      # Get real-time events from the Docker server</pre><h3>2. Docker Images &amp; Containers Management</h3><h3>2.1 Committing &amp; Tagging Images</h3><pre>docker commit &lt;container_id&gt; &lt;new_image_name&gt;       # Save container changes as an image<br>docker tag &lt;image_id&gt; &lt;repository&gt;:&lt;tag&gt;           # Tag an image</pre><h3>2.2 Building Images</h3><pre>docker build -t &lt;image_name&gt; .                      # Build an image from a Dockerfile<br>docker build -f &lt;Dockerfile&gt; -t &lt;image_name&gt; .      # Specify a Dockerfile name</pre><h3>2.3 Working with Volumes</h3><pre>docker volume create &lt;volume_name&gt;       # Create a volume<br>docker volume ls                          # List all volumes<br>docker volume rm &lt;volume_name&gt;            # Remove a volume<br>docker run -v &lt;volume_name&gt;:/data &lt;image&gt; # Mount a volume inside a container<br>docker inspect &lt;container_id&gt;             # Check volume mounts</pre><h3>3. Networking in Docker</h3><pre>docker network ls                               # List available networks<br>docker network create &lt;network_name&gt;           # Create a new network<br>docker network inspect &lt;network_name&gt;          # Inspect network details<br>docker network connect &lt;network_name&gt; &lt;container_id&gt;  # Connect a container to a network<br>docker network disconnect &lt;network_name&gt; &lt;container_id&gt; # Disconnect a container from a network<br>docker network rm &lt;network_name&gt;               # Remove a network</pre><h3>Running Containers with Custom Networks</h3><pre>docker run --network=&lt;network_name&gt; &lt;image&gt;   # Run container in a specific network</pre><h3>4. Docker Compose (Multi-Container Applications)</h3><pre>docker-compose up                   # Start services defined in docker-compose.yml<br>docker-compose up -d                # Start services in detached mode<br>docker-compose down                 # Stop and remove all containers from the compose file<br>docker-compose ps                   # List running services<br>docker-compose logs                  # View logs of all services</pre><h3>5. Docker Security</h3><pre>docker scan &lt;image&gt;                  # Scan image for vulnerabilities<br>docker history &lt;image&gt;                # View image layers and history<br>docker diff &lt;container_id&gt;            # Show changes made to container files</pre><h3>6. Docker Registry (Pushing &amp; Pulling)</h3><pre>docker login                          # Login to Docker Hub<br>docker tag &lt;image_id&gt; username/repo   # Tag an image before pushing<br>docker push username/repo             # Push image to Docker Hub<br>docker pull username/repo             # Pull an image from Docker Hub</pre><h3>7. Docker Swarm (Orchestration)</h3><pre>docker swarm init                      # Initialize swarm mode<br>docker swarm join --token &lt;token&gt;       # Join a node to swarm<br>docker service create --name my_service &lt;image&gt;   # Deploy a service<br>docker service ls                       # List services in swarm<br>docker service rm &lt;service_name&gt;         # Remove a service<br>docker node ls                           # List nodes in swarm<br>docker node rm &lt;node_id&gt;                 # Remove a node from swarm</pre><h3>8. Dockerfile Commands (Building Custom Images)</h3><h3>Basic Dockerfile Structure</h3><pre>FROM ubuntu:latest        # Base image<br>MAINTAINER John Doe       # Maintainer info<br>RUN apt update &amp;&amp; apt install -y nginx  # Install packages<br>COPY . /app               # Copy files into the container<br>WORKDIR /app              # Set working directory<br>CMD [&quot;nginx&quot;, &quot;-g&quot;, &quot;daemon off;&quot;]  # Default command</pre><h3>Building &amp; Running a Dockerfile</h3><pre>docker build -t my_custom_image .<br>docker run -d my_custom_image</pre><h3>9. Docker System Cleanup &amp; Debugging</h3><pre>docker system df                      # Show disk usage by Docker<br>docker system prune                    # Remove unused images, containers, networks, and volumes<br>docker system prune -a                 # Remove all unused data<br>docker logs &lt;container_id&gt;             # Check container logs for debugging</pre><h3>Important: One-Liners for Quick Cleanup</h3><pre>docker stop $(docker ps -aq)      # Stop all running containers<br>docker rm $(docker ps -aq)        # Remove all containers<br>docker rmi $(docker images -q)    # Remove all images<br>docker volume rm $(docker volume ls -q)  # Remove all volumes<br>docker system prune -a            # Remove everything</pre><h3>Completed my Docker Learning. Now time to make some projects</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff98d6d564e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Bash Scripting]]></title>
            <link>https://medium.com/@prxyzm/getting-started-with-bash-scripting-6c4d4e821a66?source=rss-a71ca083a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c4d4e821a66</guid>
            <dc:creator><![CDATA[Pratham]]></dc:creator>
            <pubDate>Wed, 05 Mar 2025 13:51:12 GMT</pubDate>
            <atom:updated>2025-03-05T14:03:11.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AuLXEd-rMo74WZI8Fa6mWQ.png" /></figure><h3>Introduction</h3><p>On Day 2 of my DevOps journey, I took my first steps into <strong>Bash scripting</strong> 🖥️. Since automation is at the heart of DevOps, learning how to write scripts that execute tasks efficiently is a crucial skill. I explored the fundamentals of Bash scripting, including variables, loops, and basic scripting commands.</p><h3>Why Learn Bash Scripting?</h3><p>Bash scripting is essential in DevOps because it enables:<br>✅ <strong>Task automation</strong> — Reduce manual work by scripting repetitive tasks.<br>✅ <strong>System administration</strong> — Manage files, users, and processes efficiently.<br>✅ <strong>Pipeline integration</strong> — Automate deployments and CI/CD workflows.</p><h3>My Key Learnings Today</h3><h3>1️⃣ Writing My First Bash Script</h3><p>I started by creating a simple script and learning how to execute it.</p><ul><li>Used nano and vim to write scripts.</li><li>Learned about the <strong>shebang (</strong><strong>#!/bin/bash)</strong> to define the script interpreter.</li><li>Made the script executable using chmod +x script.sh.</li></ul><h3>2️⃣ Working with Variables &amp; User Input</h3><ul><li>Declared and used <strong>variables</strong>:</li></ul><pre>name=&quot;Prathamesh&quot;<br>echo &quot;Hello, $name!&quot;</pre><ul><li>Read user input using read:</li></ul><pre>echo &quot;Enter your name:&quot;<br>read username<br>echo &quot;Welcome, $username!&quot;</pre><h3>3️⃣ Using Conditional Statements</h3><p>I explored how to use if-else to create decision-making scripts:</p><pre>echo &quot;Enter a number:&quot;<br>read num<br>if [ $num -gt 10 ]; then<br>    echo &quot;The number is greater than 10.&quot;<br>else<br>    echo &quot;The number is 10 or less.&quot;<br>fi</pre><h3>4️⃣ Loops in Bash</h3><p>Loops make automation powerful. I learned:</p><ul><li><strong>For loop:</strong></li></ul><pre>for i in {1..5}<br>do<br>    echo &quot;Iteration $i&quot;<br>done</pre><ul><li><strong>While loop:</strong></li></ul><pre>count=1<br>while [ $count -le 5 ]<br>do<br>    echo &quot;Count: $count&quot;<br>    ((count++))<br>done</pre><h3>Challenges I Faced</h3><p>🔴 Remembering syntax, especially for conditions and loops.<br>🔴 Understanding how variables work without explicit data types.<br>🔴 Handling script execution errors.</p><h3>What’s Next? (Day 3 Plan)</h3><p>📌 Learn <strong>functions in Bash scripting</strong>.<br>📌 Automate simple system tasks like <strong>file backups</strong> and <strong>log monitoring</strong>.<br>📌 Explore <strong>cron jobs</strong> for scheduling scripts.</p><p>Bash scripting is proving to be a game-changer for automation. Excited to dive deeper tomorrow!</p><p>#DevOps #BashScripting #Automation #100DaysOfDevOps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c4d4e821a66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My DevOps Journey: Starting with Linux]]></title>
            <link>https://medium.com/@prxyzm/my-devops-journey-starting-with-linux-b1dac9a2e1b8?source=rss-a71ca083a18------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1dac9a2e1b8</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Pratham]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 14:15:52 GMT</pubDate>
            <atom:updated>2025-03-05T14:04:00.656Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHUtyjui3RAYzB5mQTI1_A.png" /></figure><h3>Introduction</h3><p>Hey everyone! 🚀 So, today is officially <strong>Day 1</strong> of my DevOps journey, and I’m starting off with <strong>Linux</strong>! Since most DevOps tools and cloud servers run on Linux, I figured it’s the best place to start. This blog is gonna be my personal diary of learning, struggles, and cool stuff I discover along the way. Let’s do this!</p><h3>Why Start with Linux?</h3><p>Okay, but why Linux? Well, here are the reasons:</p><ul><li>It’s literally the <strong>backbone</strong> of servers, cloud platforms, and DevOps tools.</li><li>The command line is <strong>super powerful</strong> for automation.(There’s a lot of automation things in DevOps)</li><li>DevOps tools like <strong>Docker, Kubernetes, and Ansible</strong> work best with Linux.</li><li>If you want to master scripting, automation, and system administration, Linux is your best friend!</li></ul><h3>My First Steps with Linux</h3><h3>1️⃣ Setting Up My Environment</h3><p>Since I’m already rocking <strong>Garuda Linux</strong> (I use Arch btw… haha.) as my main OS, I didn’t need to install anything new. But, to play it safe and get the feel of standard Linux setups, I spun up a <strong>Ubuntu</strong> virtual machine on my second laptop. That way, I can experiment without messing up my main system. Smart, right?</p><h3>2️⃣ Learning Basic Commands</h3><p>I jumped straight into learning the <strong>must-know</strong> Linux commands:</p><ul><li>pwd – Where the heck am I? (Print current directory)</li><li>ls – Show me what’s here (List files and directories)</li><li>cd – Take me somewhere else (Change directories)</li><li>mkdir – Make a new home (Create a directory)</li><li>touch – Make a blank file real quick</li><li>rm – Oops, delete that!</li><li>cp – Copy-paste magic</li><li>mv – Move/rename files like a pro</li><li><em>I knew them all because I have used them a lot before.</em></li></ul><h3>3️⃣ Understanding File Permissions</h3><p>Turns out, file permissions are a <strong>big deal</strong> in Linux! Here’s what I picked up:</p><ul><li>chmod – Change who can do what with a file.</li><li>chown – Change file ownership (because who’s the boss? )</li><li>ls -l – Check who has access to what.</li><li>sudo – The magic keyword to do anything (with great power comes great responsibility!)</li></ul><h3>4️⃣ Working with Processes &amp; Services</h3><p>Managing processes and services? Now <strong>that’s</strong> some real DevOps stuff! Here’s what I tried:</p><ul><li>ps – Check which processes are running.</li><li>top / htop – Monitor system performance.</li><li>kill – Say goodbye to annoying processes.</li><li>systemctl – Control services like a Linux wizard.</li></ul><h3>Challenges I Faced</h3><p>Of course, it wasn’t all smooth sailing. Here’s where I hit some roadblocks:</p><ul><li>Remembering <strong>all</strong> the commands was hard! (But practice on regular basis would help to remembering just like muscle memory)</li><li>File permissions were kinda confusing at first.</li><li>Some commands worked differently on <strong>Garuda vs Ubuntu</strong> (I was like… why?!)</li></ul><h3>What’s Next?</h3><p>Now that I’ve got a <strong>decent grip</strong> on the basics, here’s what’s coming up next:</p><ul><li>Learning <strong>shell scripting</strong> to automate tasks.</li><li>Exploring <strong>package management</strong> (apt, yum, pacman – so many choices!).</li><li>Setting up a <strong>basic web server</strong> (Apache or Nginx — haven’t decided yet!).</li><li>Understanding <strong>user and group management</strong> (because DevOps = team management too!).</li></ul><h3>Conclusion</h3><p>And that’s a wrap on <strong>Day 1</strong> of my DevOps journey! Linux is <strong>way deeper</strong> than I expected, but I’m figuring things out. If you’re also starting with DevOps, let’s share notes! Hit me up with your experience.</p><h3>Stay tuned for my next blog update on Shell Scripting!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1dac9a2e1b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>