<?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 Kavya Chadalavada on Medium]]></title>
        <description><![CDATA[Stories by Kavya Chadalavada on Medium]]></description>
        <link>https://medium.com/@kavyachadalavada1108?source=rss-edb054a89df1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Kavya Chadalavada on Medium</title>
            <link>https://medium.com/@kavyachadalavada1108?source=rss-edb054a89df1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:07:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavyachadalavada1108/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 Compose — Simplifying Multi-Container Docker Applications]]></title>
            <link>https://medium.com/@kavyachadalavada1108/docker-compose-simplifying-multi-container-docker-applications-abcefd67b190?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/abcefd67b190</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 15:11:46 GMT</pubDate>
            <atom:updated>2026-07-04T15:11:46.851Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker Compose is a tool used to define, configure and manage <strong>multi-container Docker applications</strong> on a single host. Instead of creating containers individually, you can define all your application’s services, networks, volumes, and configurations in a single YAML file called a <strong>Compose file</strong>.</p><p>Docker Compose allows you to start, stop, and manage the entire application with a single command.</p><h3>Why Use Docker Compose?</h3><p>Managing multiple containers manually can be time-consuming and error-prone. Docker Compose simplifies this by allowing you to:</p><ul><li>Deploy multiple containers using a single YAML file.</li><li>Define services, networks, and volumes in one place.</li><li>Automatically create networks for inter-container communication.</li><li>Build custom Docker images.</li><li>Manage the entire application with simple commands.</li></ul><h4><strong>Compose File Names</strong></h4><p>Docker Compose file can be named using any of the following conventions:</p><ul><li>docker-compose.yaml</li><li>docker-compose.yml</li><li>compose.yaml</li><li>compose.yml</li></ul><h3>Key Components of a Compose File</h3><h3>1. Services</h3><p>A service represents a container in our application, such as:</p><ul><li>Web Server</li><li>Application Server</li><li>Database</li></ul><p>Each service specifies the image, ports, environment variables, volumes, and other configurations required to run the container.</p><h3>2. Networks</h3><p>Networks define how containers communicate with one another.</p><p>By default, Docker Compose creates a dedicated bridge network allowing all services within the project to communicate using their <strong>service names</strong>. You can also create custom networks to isolate services.</p><h3>3. Volumes</h3><p>Volumes provide persistent storage for containers.</p><p>They allow:</p><ul><li>Data persistence even after container removal.</li><li>Sharing data between containers.</li><li>Storing databases safely.</li></ul><h3>4. Build</h3><p>The build option allows Docker Compose to create a custom Docker image using a Dockerfile.</p><p>Instead of downloading an image from Docker Hub, Compose builds it locally before starting the container.</p><h3>Common Docker Compose Commands</h3><pre>docker compose up -d   # Start all services<br>docker compose build   # Build custom images<br>docker compose images  # View built images<br>docker compose ps      # List running containers<br>docker compose logs    # View logs<br>docker compose stop    # Stop services<br>docker compose start   # Start stopped services<br>docker compose pause   # Pause services<br>docker compose unpause  # Unpause services<br>docker compose down     #Stop and remove containers, networks, and default resources</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jI4g8mfJvGbNnka99kYeQ.png" /></figure><p>Ex: I have two services:</p><ul><li><strong>Nova</strong></li><li><strong>Shopping</strong></li></ul><p>Both services are defined inside the same docker-compose.yaml file below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*0Ow2EUq6KBUBanYQDLAt_g.png" /></figure><p>Executed the Compose file with <strong>docker-compose up -d</strong></p><p>Docker automatically created containers for both services in a default Network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*KjvCqci1fJJqUvgQ0BeVVQ.png" /></figure><p>Inspecting the default network created through compose file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zHTxwosNcu23DwiTGGkslw.png" /></figure><p><strong>Default Network Communication</strong></p><p>After running the Compose file:</p><pre>Nova Container    <br>IP: 172.18.0.3   (Check the address in above inspect snap)<br>        │<br>        │<br> Default Docker Network<br>        │<br>        │<br>Shopping Container<br>IP: 172.18.0.2   (Check the address in above inspect snap)</pre><p>Since both containers belong to the <strong>same Docker compose network</strong>, they can communicate with each other without any additional configuration.</p><p>Note: In real-world applications, containers communicate using <strong>service names</strong>, not IP addresses. I have used IP addresses in this demonstration only to clearly illustrate how Docker assigns networking to containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*_gR_mwqo92BJYRWrksv9Nw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*0xHo_ybevT9B9CRzi8vlfA.png" /></figure><p><strong>Using Custom networks :</strong></p><p>Instead of using the default network, I have assigned each service to a different custom network.</p><p>Ex:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*SfA5z4mbcKEvkSgUztn-kw.png" /></figure><p>Executing the compose file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IEPEEtc790db9MdmrHqWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ao6TqyO1UG3BacsROihOEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GeccT29h-G5Js26_fe0Gg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*HvP9cQDYQyfqrNFOhLOr3Q.png" /></figure><p>Now, the containers are created in different networks and having different IP addresses.</p><p>The ipaddress of shop_cont: 172.20.0.2</p><p>The ipaddress of nova_cont: 172.19.0.2</p><p>Result:</p><p>❌ The containers <strong>cannot communicate</strong> because they are connected to different networks.</p><h4><strong>Enabling Communication Between Different Networks:</strong></h4><p>To allow communication, I have attached both services to each others network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*iuLTV6uyfJb4gCS01GCi_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzODY85J5Gl_tXL_VJew8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*5J163sggFqJ-DGpqdlN8vQ.png" /></figure><p>Now both containers can communicate even though there are in different networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*82DltpG7ycgs-Khf0F7r5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*I-RM7IzjowXXldTvGwv6FA.png" /></figure><h3>Attaching Volumes to containers:</h3><p>Now, I have attached volumes to the containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*obuPOiJBZVR9d6tGL5f-kw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*Z3D41lsMHGV7C7kfLbC4Jw.png" /></figure><p>After attaching a named volume, I verified that data persisted even after the container was removed and recreated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*TsyAQ-c0_B8-a_tNOEV-5Q.png" /></figure><h4><strong>Environment Variables:</strong></h4><p>The environment section allows you to define environment variables for your containers.</p><p>Example:</p><ul><li>Username</li><li>Password</li><li>Environment and so on ..</li></ul><h4><strong>Restart Policy:</strong></h4><p>A <strong>restart policy</strong> defines how Docker should handle a container if it stops, crashes, or the Docker daemon restarts. It improves application availability by automatically restarting containers based on the configured policy.</p><p>Options:</p><p>1. <strong>no </strong>(Default): The container <strong>not to restart</strong> automatically when it exits.</p><p>2. <strong>always</strong>: Docker <strong>always restarts </strong>if the container stops, even after a system reboot.</p><p>3. <strong>on-failure: </strong>Docker restarts the container only if it exits with a non-zero exit code (failure).</p><p>4. <strong>unless-stopped</strong>: Docker restarts the container automatically <strong>unless it has been manually stop</strong>.</p><h3>Resources :</h3><p>The <strong>resources</strong> section allows you to limit or reserve CPU and memory for containers. This prevents one container from consuming excessive CPU or memory, improving overall system stability.</p><p><strong>Limits: </strong>Maximum resources the container can consume.</p><p><strong>Reservations: </strong>Minimum resources reserved for the container.</p><h3><strong>Attaching Environment Variables ,Restart Policy, Resources to services:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*nnoXJCQ-q4XEFMI2MhPtBg.png" /><figcaption>sample.env file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*OkG_qor-jl3TK5DyJDFbUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gggBDwkemhJb3IS_tL_9SQ.png" /></figure><h3>🚀 Key Takeaways</h3><p>✅ Docker Compose simplifies the deployment and management of <strong>multi-container applications</strong> using a single docker-compose.yaml (or compose.yaml) file.</p><p>✅ Define <strong>services, networks, volumes, environment variables, restart policies, and resource limits</strong> in one place for easier management.</p><p>✅ Launch, stop, and manage the entire application with simple commands like docker compose up and docker compose down.</p><p>✅ Docker Compose automatically creates a <strong>default bridge network</strong>, allowing services to communicate seamlessly using <strong>service names</strong>.</p><p>✅ Use <strong>named volumes</strong> to ensure data persists even when containers are stopped, removed, or recreated.</p><p>✅ Configure applications for different environments using <strong>environment variables</strong> or .env files without modifying the application code.</p><p>✅ Improve application reliability with <strong>restart policies</strong> and optimize resource usage using <strong>CPU and memory limits</strong>.</p><p>✅ Docker Compose is an excellent choice for <strong>local development, testing, CI/CD pipelines, and small to medium-sized applications</strong>.</p><p>✅ In production and development, use <strong>service names</strong> for container-to-container communication instead of IP addresses, as Docker automatically provides DNS-based service discovery.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abcefd67b190" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Registry — From Docker Build to Jenkins Automation]]></title>
            <link>https://medium.com/@kavyachadalavada1108/docker-registry-from-docker-build-to-jenkins-automation-c06e78df378f?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c06e78df378f</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 17:44:15 GMT</pubDate>
            <atom:updated>2026-06-30T17:44:15.802Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Docker Registry</strong> is a centralized repository used to store and manage Docker images. It allows users to <strong>pull images</strong> to create containers and <strong>push their own custom images</strong> for backup, sharing and deployment. And also allows to store versioned images for future use.</p><p>The default public Docker registry is <strong>Docker Hub</strong>.</p><h3>Types of Docker Registries:</h3><p><strong>1. Local/Private Registry: </strong>Used within an organization to securely store and manage Docker images.</p><p><strong>Examples:</strong></p><ul><li>Nexus Repository</li><li>JFrog Artifactory</li></ul><h4>Advantages</h4><ul><li>Secure image storage</li><li>Internal access only</li><li>Better control over images</li><li>Supprts enterprise environments</li></ul><p><strong>2. Cloud-Based Registry: </strong>Used to store and share Docker images over the cloud.</p><p><strong>Examples:</strong></p><ul><li>Docker Hub</li><li>Azure Container Registry (ACR)</li><li>Amazon Elastic Container Registry (ECR)</li><li>Google Artifact Registry (GAR)</li></ul><h4>Advantages</h4><ul><li>Easy image sharing</li><li>Global accessibility</li><li>Integrates with CI/CD pipelines</li><li>Suitable for cloud deployments</li></ul><h3>Docker Commands</h3><h4>Build a Docker Image:</h4><pre>docker build -t image-name .</pre><p>Ex:</p><pre>docker build famous_movies .</pre><h4>Tag an Image:</h4><pre>docker tag image-name username/repository-name:tag</pre><p>Example:</p><pre>docker tag famous_movies kavya318506/famous_movies:1.1</pre><h4>Push an Image:</h4><pre>docker push username/repository-name:tag</pre><p>Example:</p><pre>docker push kavya318506/famous_movies:1.1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gDQRhc-heVqfTfzrDdKNcg.png" /></figure><h3>Manual Process: Build and Push an Image to Docker Hub</h3><h3>Prerequisites</h3><p>Before pushing an image to Docker Hub:</p><ul><li>Install Docker</li><li>Create a Docker Hub account with Username and Password.</li></ul><h4>Step 1: Build the Docker Image</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dOaKE_2ttn7b1qCzauAmCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*lDHEA1PohrRkue0m6cBaHQ.png" /><figcaption>Dockerfile</figcaption></figure><h4>Step 2: Log in to Registry using Docker CLI</h4><pre>docker login<br><br>Enter your Docker Hub username and password when prompted.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*VKsR8Ivv9fx4P6CbCaRm3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ozTxFSIdmSXTzcr1odZINQ.png" /></figure><h4>Step 3: Tag the Image and Push to Registry</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*T9BIqy1dge1450K96aybLQ.png" /></figure><h4>Step 4: Verify</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Xam2-eFW5fij1aOtZFbjwA.png" /></figure><h3>Integrating Docker Registry with Jenkins</h3><p>Running Docker commands manually every time is repetitive.</p><p>In real-world DevOps projects, Docker Images are typically built and pushed automatically using Jenkins Pipelines.</p><h4>Step 1: Configure Jenkins</h4><ul><li>Install Jenkins.</li><li>Install Docker and git</li></ul><h4>Required Plugins</h4><ul><li>Docker Pipeline Plugin</li><li>Pipeline Stage View Plugin</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*8hH46qYhSSDhFBUwzQaZNw.png" /></figure><h4>Step 2: Store Source Code</h4><p>Keep both the application source code and Dockerfile in a Git repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*kl4QDrTDOkGl9A6yByZsvw.png" /></figure><h4>Step 3: Create a Jenkins Pipeline</h4><p>The pipeline automates the following tasks:</p><ul><li>Clone source code from GitHub</li><li>Build the Docker Image</li><li>Tag the Docker Image</li><li>Authenticate with Docker Hub</li><li>Push the Image to Docker Hub</li><li>Deploy the Docker Container (optional)</li></ul><p>Jenkins Pipeline code as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*QdisDo_WgCXETxNG_tgcLg.png" /></figure><h4>Step 4: Run the pipeline</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*XjATEwOukPrc8wqVaxh38A.png" /></figure><h4>Step 5: Verification</h4><ul><li>Verify that the image is available in Docker Hub.</li><li>Verify that the application is accessible.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*pZ-hp_qCpS9PbdXs0eQsOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*1yAp3djbi7UM_6XDCt52Zg.png" /></figure><h3>Common Errors and Troubleshooting</h3><h4>1. Permission Denied During Docker Build</h4><p><strong>Error: </strong>The Jenkins pipeline fails during the Docker Build stage due to permission issues.</p><p><strong>Cause: </strong>The Jenkins user does not have permission to communicate with the Docker daemon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rKNfyQ7OCVMbld-2UeF7Zw.png" /></figure><p><strong>Solution-1:</strong> Add the Jenkins user to the Docker group(Highly used in real-world projects)</p><pre>sudo usermod -aG docker jenkins<br>sudo systemctl restart jenkins<br>sudo systemctl restart dockerprovide permission as chmod 777 /var/run/docker.sock</pre><p><strong>Solution-2 :</strong> Run <strong>chmod 777 /var/run/docker.sock</strong>(recommend for practice purpose)</p><h4>2. Docker Hub Authentication Failed</h4><h4>Cause</h4><ul><li>Incorrect Docker Hub credentials.</li><li>Incorrect credentialsId configured in Jenkins.</li></ul><h4>Solution</h4><ul><li>Verify the Docker Hub username and password.</li><li>Reference the correct credentialsId in the pipeline.</li></ul><h3>Key Takeaway</h3><p>A Docker Registry acts as a centralized repository for storing and distributing Docker Images.</p><p>By integrating Docker Registry with Jenkins automates the entire process from image creation, versioning, versioning to publishing and deployment. This automation is a key part of modern CI/CD pipelines, enabling faster, more reliable, and consistent application delivery.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c06e78df378f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Volumes — Persist Data Beyond Containers]]></title>
            <link>https://medium.com/@kavyachadalavada1108/docker-volumes-persist-data-beyond-containers-ee22ed351349?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee22ed351349</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 17:49:39 GMT</pubDate>
            <atom:updated>2026-06-23T17:49:39.372Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker Volumes are used to <strong>persist data outside of containers</strong>. Even if a container stops or is deleted, the data stored in a volume remains safe.</p><h3>Why Are Volumes Needed?</h3><p>Containers are designed to be <strong>ephemeral</strong>, meaning their data exists only for the lifetime of the container. When a container is deleted, any data stored inside it is lost.</p><p>Docker Volumes solve this challenge by keeping data separate from the container, allowing it to persist independently.</p><h3>Benefits of Volumes</h3><p>✅Persist data even after container deletion.</p><p>✅Independent of container lifeycle.</p><p>✅Share data among multiple containers.</p><p>✅Useful for databases and applications requiring persistent storage.</p><p>✅ Simplify data backup and migration</p><h3>Important Points:</h3><ul><li>Volumes are typically attached when a container is created.</li><li>To add a new volume to an existing container, the container usually needs to be recreated.</li><li>A single volume can be mounted by multiple containers.</li><li>Docker manages and maintains volumes separately from containers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z_OApjzLdOf2eqLiSx4QoQ.png" /></figure><h3>Types of volumes:</h3><h3>1. Named Volumes:</h3><p>Named volumes are explicitly created and managed by Docker. They are the most commonly used volume type in production environments.</p><h4>Example:</h4><pre>docker volume create vol1<br><br>docker run -itd --name cont1 --mount source=vol1,destination=/usr/share/nginx/html nginx</pre><h3>Use Cases</h3><ul><li>Databases (MySQL, PostgreSQL, MongoDB)</li><li>Persistent application data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*a2nKJrjv5UV-_9TqDN0EiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HXI6Cf0pe5mjl5H_3y1ReA.png" /></figure><h3>2. Anonymous Volumes</h3><p>Anonymous volumes are automatically created by Docker when a volume path is specified without a volume name.</p><h4>Example:</h4><pre>docker run -itd --name cont1 -v /opt/container nginx</pre><p>Docker automatically generates a volume with a unique ID:</p><pre>7f4e3c5a9d8b...</pre><h3>Characteristics</h3><ul><li>No user-defined name.</li><li>Identified using a random ID</li><li>More difficult to manage than named volumes</li><li>Often used for temporary data storage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htQ_OLrQoO6fPmiSE7Y8PQ.png" /></figure><h3>3. Bind Mounts</h3><p>Bind Mounts connect a specific directory on the host machine to a directory inside the container.</p><h4>Example:</h4><pre>docker run -itd --name cont1 -v $(pwd):/opt/container nginx</pre><h4>How It Works:</h4><pre>Host Directory<br>     │<br>     ▼<br>$(pwd)<br>     │<br>     ▼<br>/opt/container<br>(Container Directory)</pre><p>Any changes made on the host are immediately reflected inside the container, and vice versa.</p><h3>Use Cases</h3><ul><li>Development environments</li><li>Sharing source code with containers</li><li>Testing and debugging applications</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DFnT60EldH7UCEQQX7LRpg.png" /></figure><h3>Common Volume Commands:</h3><pre>docker volume create volume-name     # Create a volume<br>docker volume ls                     # List of volumes<br>docker volume rm volume-name         # Delete a volume<br>docker volume inspect volume-name    # Inspect a volume<br>docker run -itd --name cont-name --mount source=vol-name,target=/path image-name # Attach volume to a container<br>docker run -itd --name cont-name --mount source=vol-name,target=/path,readonly img-name #Attach a read-only volume</pre><h3>Key Takeaways</h3><p>📌 <strong>Named Volumes</strong> → Best choice for databases and long-term persistent data.</p><p>📌 <strong>Anonymous Volumes</strong> → Automatically created temporary volumes with random IDs.</p><p>📌 <strong>Bind Mounts</strong> → Ideal for development, code sharing, and real-time file synchronization between the host and container.</p><p>Understanding when to use each storage option is essential for building reliable and production-ready containerized applications. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee22ed351349" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Networks: Bridge, Host, None, Overlay and Custom Networks]]></title>
            <link>https://medium.com/@kavyachadalavada1108/docker-networks-bridge-host-none-overlay-and-custom-networks-3400e1cdb0db?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3400e1cdb0db</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 17:29:52 GMT</pubDate>
            <atom:updated>2026-06-19T17:29:52.964Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with Docker containers, networking plays a crucial role in enabling communication between containers, hosts, and external systems.</p><p>Whether you’re running a single containerized application or managing a distributed microservices architecture, understanding Docker networking is essential.</p><h3>Why Do We Need Docker Networks?</h3><p>By default, containers run in isolated environments. Docker networking provides a way for containers to:</p><ul><li>Communicate with each other</li><li>Access external services</li><li>Be accessed by users and applications outside Docker</li><li>Enable service discovery in multi-container applications</li></ul><p>Docker offers several networking options to meet different application requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XG0VpHwHYsL7WPUvuQLLJg.png" /></figure><h3>Types of Docker Networks:</h3><h4>1️⃣ Bridge Network (Default Network):</h4><p>-&gt; The <strong>Bridge Network</strong> is Docker’s default networking mode.</p><p>-&gt; When Docker is installed, it automatically creates a bridge network called <strong>docker0</strong>.</p><p>-&gt; Each container connected to this network receives its own private IP address.</p><h3>How It Works</h3><ul><li>Containers on the same bridge network can communicate with each other.</li><li>External users cannot access containers directly.</li><li>To access a container from outside the host, <strong>port mapping</strong> is required.</li></ul><p><strong>Example:</strong></p><pre>docker run -d -p 8080:80 nginx</pre><p>In this example:</p><ul><li>Port <strong>80</strong> inside the container</li><li>Port <strong>8080</strong> on the host machine</li></ul><p>Requests sent to host-ip:8080 are forwarded to port 80 inside the container.</p><p><strong>Use Cases:</strong></p><ul><li>Single-host applications</li><li>Controlled external access through port mapping</li></ul><h3>Advantages</h3><p>✅ Default network, no setup required<br> ✅ Containers on the same host can communicate easily<br> ✅ Supports port mapping for controlled external access<br> ✅ Provides isolation from the host</p><h3>Disadvantages</h3><p>❌ Works only on a single Docker host. <br>❌ Managing large number of containers can become complex</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*nqFGhj6kCRkybL2dv7rbyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*y8D5ZNLVT79a52AfAshpCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*eu-ugDVGcsB8IyjDNmcN2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*o0O87f0l5Ek93orFdLxl5Q.png" /></figure><p>Accessing the apps running inside containers through bridge network:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*na1drpR8fpnx9cmGPklFKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*IS-C-jPyaWh9arUFKIYldg.png" /></figure><h4>2️⃣ Host Network:</h4><p>In Host networking mode, the container shares the host machine’s network stack.</p><p>Unlike Bridge networking, Docker does not create a separate network namespace.</p><h3>How It Works</h3><ul><li>The container uses the host’s IP address directly.</li><li>No separate container IP address is assigned.</li><li>Port mapping is not required.</li></ul><h3>Example</h3><pre>docker run -itd --name cont-name --network=host image_name</pre><p>If the application inside the container listens on port 8080, it will be directly accessible through the host’s port 8080.</p><p><strong>Use Cases:</strong></p><ul><li>High-performance applications</li><li>Applications requiring direct access to host networking</li></ul><h3>Advantages</h3><p>✅ Better network performance<br> ✅ No port mapping needed</p><h3>Disadvantages</h3><p>❌ Reduced isolation between host and container<br> ❌ Port conflicts can occur if multiple containers use the same port<br> ❌ Less secure than bridge network</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*VQq9Bpfa8yuKrPUd9XJhMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*4DG6k6insPTKaY6iia_dIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*q4Gb7z073jarNjJY63kpLw.png" /><figcaption>Accessing the app running inside container through host network</figcaption></figure><h4>3️⃣ None Network:</h4><p>The None network completely disables networking for a container.</p><p>Containers attached to this network have no external connectivity.</p><h3>How It Works</h3><ul><li>No IP address is assigned.</li><li>No communication with other containers.</li><li>No internet access.</li></ul><h3>Example:</h3><pre>docker run -itd --name cont-name --network=none image_name</pre><h3>Use Cases</h3><ul><li>Security-sensitive workloads</li><li>Offline batch processing</li><li>Containers that do not require networking</li></ul><h3>Advantages</h3><p>✅ Maximum isolation<br> ✅ Reduced attack surface</p><h3>Disadvantages</h3><p>❌ No communication with external systems<br> ❌ No internet access<br> ❌ Not suitable for web applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*eROpfYTSnepawQEQY0P1ZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*uaC1GxTZw09RnD2tktwGWg.png" /></figure><h4>4️⃣ Overlay Network:</h4><p>Overlay networking allows containers running on different Docker hosts to communicate as if they were on the same network.</p><p>It is commonly used in <strong>Docker Swarm</strong> environments.</p><h3>How It Works</h3><ul><li>Overlay networks create a virtual network that spans multiple Docker hosts.</li><li>Containers can communicate securely across hosts without requiring manual routing configurations.</li></ul><h3>Use Cases</h3><ul><li>Docker Swarm clusters</li><li>Distributed applications</li><li>Multi-host microservices architectures</li></ul><h3>Advantages</h3><p>✅ Supports multi-host communication</p><p>✅ Built-in service discovery</p><p>✅ Scalable networking solution</p><h3>Disadvantages</h3><p>❌ More complex to configure<br> ❌ Slight network overhead compared to bridge/host<br> ❌ Primarily useful in Swarm environments</p><h3>5️⃣ Custom Network:</h3><p>A Custom Network is a user-created Docker network that provides better control over container communication.</p><p>One major advantage is that containers can communicate using container names instead of IP addresses.</p><h3>Why Use a Custom Network?</h3><p>Consider two containers:</p><pre>Frontend Container<br>Backend Container</pre><p>Instead of using dynamic IP addresses, the frontend can directly communicate with backend container</p><p>Docker automatically resolves container names using built-in DNS.</p><h3>Use Cases</h3><ul><li>Microservices architecture</li><li>Multi-container applications</li><li>Development environments</li></ul><h3>Advantages</h3><p>✅ Name-based communication</p><p>✅ Better isolation</p><p>✅ Easier service discovery</p><p>✅ More control over communication</p><h3>Disadvantages</h3><p>❌ Requires manual setup</p><p>❌ Additional administration effort</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*XGVp7W4R8zSTVkzvtpmCLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*UgASGtLRUZQbeWJRJF347g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*gWtNMap7w5ftNpGJFnj_Fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnnIXnfMmRYqo_GsR0H2bQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePXQn3sydzkUgqHbn418Ww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*o95RNNzeDJZsmb0pPQDx8Q.png" /></figure><p><strong>List Networks:</strong></p><pre>docker network ls                      # list of docker networks<br>docker network inspect network-name    # Inspect a network<br>Docker network create network-name     # Create a new network<br>docker network connect network-name cont-name # Connect a Container to a Network<br>docker network disconnect network_name container_name # Disconnect a Container from a Network<br>docker network rm network-name          # Remove a network<br>docker exec -it cont1 ping &lt;container-ip&gt; #Verify Connectivity Between Containers<br></pre><p><strong>Quick Comparison:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*oyNY0JkRM6Czm9-RPpWC1Q.png" /></figure><h3>Easy Memory Trick</h3><pre>Bridge  → Same Server<br>Host    → Use Host IP<br>None    → No Network<br>Overlay → Multiple Servers<br>Custom → Container Names</pre><p>Understanding these Docker networking options helps you choose the right networking model based on your application’s performance, security, and scalability requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3400e1cdb0db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Images & Containers]]></title>
            <link>https://medium.com/@kavyachadalavada1108/docker-images-containers-d8bc69eee7a2?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8bc69eee7a2</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 17:20:46 GMT</pubDate>
            <atom:updated>2026-06-17T17:24:12.077Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker is built around four core pillars that enable application packaging, deployment, communication, and persistent storage.</p><p>✅ Images<br> ✅ Containers<br> ✅ Networks<br> ✅ Volumes</p><p>In this article, let’s focus on the first two pillars: <strong>Images</strong> and <strong>Containers</strong>.</p><h3>1. Docker Images</h3><p>A Docker Image is a <strong>read-only blueprint or template </strong>used to create containers.</p><p>It contains:</p><ul><li>Application Code</li><li>Runtime Environment</li><li>Libraries</li><li>Dependencies</li><li>Configuration Files</li></ul><p>Images are portable and can be shared through Docker Registries such as Docker Hub or Amazon ECR.</p><h3>Pull an Image from a Registry</h3><pre>docker pull &lt;image-name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*yicm08T4KKdE5iYT_-NWhg.png" /></figure><h3>Create an Image from a Dockerfile</h3><pre>docker build -t image-name:tag .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*_Jzkn489OcEpwNU2zKf1nw.png" /><figcaption>Dockerfile</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFBjbe7MwJgGJ6vWFtr3uA.png" /></figure><h3>2. Docker Containers</h3><p>A Docker Container is a running instance of a Docker Image.</p><p>Characteristics:</p><ul><li>Lightweight</li><li>Portable</li><li>Isolated</li><li>Fast startup</li></ul><p><strong>Relationship:</strong></p><pre>Docker Image<br>      ↓<br>Docker Container</pre><p>Containers are always created from Docker Images.</p><p>Containers execute the application and provide a consistent runtime environment across Development, Testing, and Production.</p><h3>Create a Container</h3><pre>docker run -itd --name mycontainer nginx</pre><p>This command:</p><ul><li>Pulls the image automatically if not available locally</li><li>Creates the container</li><li>Starts the container in detached mode</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_WLEBgX_GoJt7vImR2QNrQ.png" /></figure><h3>🚀 How to Reduce Docker Image Size</h3><p>Smaller images improve:</p><ul><li>Build speed</li><li>Image pull time</li><li>Storage efficiency</li><li>Security</li></ul><p>Here are three common techniques:</p><h3>1. Use Alpine or Slim Base Images</h3><p>Use lightweight base images whenever possible.</p><p>Example:</p><pre>FROM nginx:alpine<br>COPY basic.html /usr/share/nginx/html</pre><p>Benefits:</p><ul><li>Smaller image size</li><li>Faster downloads</li><li>Reduced attack surface</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*tw3iMMCGAlrFiSPuhb4lKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtGhJNFkX3xVzwq89RDnrg.png" /></figure><p>We can clearly see the difference in the image size. An Alpine-based image significantly smaller than a standard Linux-based image.</p><h3>2. Use Multi-Stage Builds</h3><p>Multi-stage builds separate the build environment from the runtime environment.</p><p>This ensures that only the required application artifacts are included in the final image.</p><h3>Benefits</h3><ul><li>Removes build tools and unnecessary dependencies</li><li>Produces smaller images</li><li>Improves security</li><li>Creates cleaner production images</li></ul><p>Ex: Below is the Dockerfile for the node application</p><pre><br>FROM node:20-alpine AS first       # Stage 1 - Build<br>WORKDIR /app<br>COPY package*.json ./<br>RUN npm install<br>COPY . .<br><br><br>FROM first as second                # Stage 2 - Production<br>COPY . .<br>RUN npm install --production<br>CMD [&quot;node&quot;, &quot;index.js&quot;]</pre><h3>3. Use .dockerignore File</h3><p>The .dockerignore file prevents unnecessary files/folders from being sent to Docker during the build process.</p><p>Benefits:</p><ul><li>Faster image builds</li><li>Reduced image size</li><li>Cleaner images</li></ul><p>📌 It works similarly to a .gitignore file by excluding unwanted files from the build process.</p><p>🎯 <strong>Key Takeaway</strong></p><p>Understanding the relationship between Images and Containers is the first step toward mastering Docker.</p><p>Build Image Once. Run the Container Anywhere. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8bc69eee7a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerfile and its Components]]></title>
            <link>https://medium.com/@kavyachadalavada1108/dockerfile-and-its-components-2363ffa8a6a4?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2363ffa8a6a4</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 17:27:00 GMT</pubDate>
            <atom:updated>2026-06-14T17:27:00.594Z</atom:updated>
            <content:encoded><![CDATA[<p>A Dockerfile is a text file that contains a set of instructions used to build Docker images automatically.</p><p>The file name must be Dockerfile with a capital <strong>D</strong> and should not have any file extension.</p><h3>Components of a Dockerfile:</h3><h3>FROM:</h3><p>Specifies the base image on which the new image is built.</p><p><strong>Example:</strong></p><pre>FROM ubuntu:22.04</pre><p>Every Dockerfile must start with a FROM instruction (except in advanced multi-stage builds).</p><h3>MAINTAINER (Deprecated):</h3><p>Used to provide information about the author of the image.</p><p><strong>Example:</strong></p><pre>MAINTAINER John Doe</pre><p>Note: This instruction is deprecated and has been replaced by LABEL.</p><h3>LABEL</h3><p>Adds metadata such as the author, version, or a description of the image.</p><p><strong>Example:</strong></p><pre>LABEL version=&quot;1.0&quot;<br>LABEL author=&quot;John Doe&quot;</pre><h3>EXPOSE:</h3><p>Documents the port on which the application listens inside the container.</p><p><strong>Example:</strong></p><pre>EXPOSE 8080</pre><p><strong>Note:</strong> EXPOSE does not publish the port. Port mapping must be done using docker run -p host_port:container_port image_name</p><h3>WORKDIR:</h3><p>Sets the working directory inside the container.</p><ul><li>All subsequent instructions execute from this directory.</li></ul><p><strong>Example:</strong></p><pre>WORKDIR /app</pre><h3>COPY:</h3><p>Copies files or directories from the local system to the container.</p><p><strong>Example:</strong></p><pre>COPY . /app</pre><h3>ADD:</h3><p>Copies files from the local system into the container.</p><p>Additional capabilities:</p><ul><li>Automatically extracts local tar archives.</li><li>Supports downloading files from URLs.</li></ul><p><strong>Example:</strong></p><pre>ADD app.tar.gz /app</pre><p><strong>Best Practice :</strong> Use COPY whenever possible. Use ADD only when its extra features are required.</p><h3>RUN:</h3><p>Executes commands during the image build process.</p><p>Commonly used for:</p><ul><li>Installing packages</li><li>Creating directories</li><li>Configuring the environment</li></ul><p><strong>Example:</strong></p><pre>RUN apt update -y &amp;&amp; apt install git -y</pre><h3>CMD:</h3><p>Specifies the default command that runs when a container starts.</p><ul><li>Can be overridden at runtime.</li><li>If multiple CMD instructions exist, only the last one takes effect.</li></ul><p><strong>Example:</strong></p><pre>CMD [&quot;yahoo.com&quot;, &quot;google.com&quot;]</pre><h3>ENTRYPOINT:</h3><p>Specifies the command that will always be executed when the container starts.</p><ul><li>Designed for fixed startup commands.</li><li>Parameters can be supplied when running the container.</li></ul><p><strong>Example:</strong></p><pre>ENTRYPOINT [&quot;ping&quot;]</pre><p>When the container starts, Docker combines ENTRYPOINT and CMD:</p><pre>ENTRYPOINT [&quot;ping&quot;]<br>CMD [&quot;google.com&quot;]</pre><p>Execution:</p><pre>ping google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wpG13sSu52b2blC45XMWw.png" /></figure><h4>ENV:</h4><p>Defines environment variables available inside the running container.</p><ul><li>Values can be overridden using docker run -e.</li></ul><p><strong>Example:</strong></p><pre>ENV APP_ENV=production</pre><p>Run with:</p><pre>docker run -e APP_ENV=development image_name</pre><h3>ARG:</h3><p>Defines build-time variables.</p><p>Characteristics:</p><ul><li>Available only during image creation.</li><li>Not available inside the running container unless explicitly passed to an ENV variable.</li><li>Values can be overridden using --build-arg.</li></ul><p><strong>Example:</strong></p><pre>ARG VERSION=1.0</pre><p>Build command:</p><pre>docker build -t myapp:1.3 --build-args= &quot;place=bangalore&quot;</pre><p>Sample Dockerfile:</p><h3>Sample Dockerfile</h3><pre>FROM ubuntu:22.04<br>LABEL author=&quot;Kavya&quot;<br>LABEL version=&quot;1.0&quot;<br>WORKDIR /app<br>COPY . /app<br>RUN apt update -y<br>ENV APP_ENV=production<br>EXPOSE 8080<br>ENTRYPOINT [&quot;ping&quot;]<br>CMD [&quot;google.com&quot;]</pre><h3>How to Build a Docker Image</h3><pre>docker build -t image_name:tag_name .</pre><h3>Example</h3><pre>docker build -t myapp:v1 .</pre><p>Where:</p><ul><li>-t → Assigns a name and tag to the image.</li><li>myapp → Image name.</li><li>v1 → Image tag/version.</li><li>. → Path to the directory containing the Dockerfile.</li></ul><p>Flow for quick understanding:</p><p><strong>📄 Dockerfile</strong> → <strong>🐳 Docker Image</strong> → <strong>📦 Container</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2363ffa8a6a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build, Test, and Deploy an Application Through a Pipeline Job in Jenkins]]></title>
            <link>https://medium.com/@kavyachadalavada1108/how-to-build-test-and-deploy-an-application-through-a-pipeline-job-in-jenkins-f9bc50a2417d?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9bc50a2417d</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 16:53:27 GMT</pubDate>
            <atom:updated>2026-06-11T16:53:27.174Z</atom:updated>
            <content:encoded><![CDATA[<p>A <strong>Pipeline Job</strong> is the most commonly used job type in Jenkins for implementing CI/CD automation.</p><p>Pipelines are written using <strong>Groovy-based syntax</strong> and allow us to define the entire build, test, and deployment workflow as code.</p><h3>Types of Jenkins Pipelines</h3><h3>1. Declarative Pipeline</h3><ul><li>Easier to write and understand.</li><li>More structured and readable.</li><li>Better for troubleshooting and maintenance.</li><li>Recommended for most CI/CD workflows.</li></ul><p><strong>Limitation:</strong> Less flexible when handling complex logic such as advanced loops and conditions.</p><h3>2. Scripted Pipeline</h3><ul><li>Uses pure Groovy scripting.</li><li>More flexible and powerful.</li><li>Supports complex logic, loops, and conditional statements.</li></ul><p><strong>Limitation:</strong> More difficult to read, maintain, and troubleshoot.</p><h3>Real-World Usage</h3><p>In most real-world projects, teams primarily use <strong>Declarative Pipelines</strong> and occasionally incorporate <strong>Scripted Pipeline</strong> blocks when advanced logic is required.</p><h3>Declarative Pipeline Structure</h3><p>A Declarative Pipeline always starts with the keyword:</p><pre>pipeline</pre><h3>Easy Way to Remember</h3><pre>P → Pipeline<br>A → Agent<br>S → Stages<br>S → Stage<br>S → Steps</pre><h3>Components</h3><h4>Pipeline:</h4><p>Defines the beginning of the Jenkins pipeline.</p><pre>pipeline {</pre><h4>Agent:</h4><p>Specifies where the pipeline should run.</p><p>Examples:</p><pre>agent any  //mention to run the pipeline on the available server</pre><p>or</p><pre>agent { <br>     node {<br>      label &#39;slave-node&#39;  // Run the pipeline on the node based on the matching label <br>          }<br>      }</pre><h4>Stages:</h4><p>Contains all stages involved in the CI/CD process.</p><pre>stages {</pre><h4>Stage:</h4><p>Represents an individual phase of the pipeline.</p><p>Examples:</p><pre>Build<br>Test<br>Deploy</pre><h4>Steps:</h4><p>Contains the actual commands that Jenkins executes.</p><pre>steps {<br>    sh &#39;mvn clean package&#39;<br>}</pre><h3>Environment</h3><p>The environment block is used to define variables that can be accessed throughout the pipeline.</p><p>Instead of hardcoding values multiple times, define them once and reuse them.</p><h3>Example</h3><pre>environment {<br>    APP_NAME = &quot;java-app&quot;<br>    NEXUS_URL = &quot;http://nexus:8081&quot;<br>    DEPLOY_ENV = &quot;production&quot;<br>}</pre><h3>Usage</h3><pre>echo &quot;${APP_NAME}&quot;</pre><h3>Why use Environment Variables?</h3><ul><li>Avoid hardcoding values</li><li>Improve maintainability</li><li>Reuse values across stages</li><li>Store URLs, application names, versions, etc.</li></ul><h3>Post:</h3><p>The post block defines actions that should run after pipeline execution.</p><p>It is mainly used for:</p><ul><li>Notifications</li><li>Cleanup</li><li>Success messages</li><li>Failure handling</li></ul><h3>Syntax</h3><pre>post {<br>     success {<br>        echo &#39;Build Successful&#39;<br>    }<br>    failure {<br>        echo &#39;Build Failed&#39;<br>    }<br>    always {<br>        echo &#39;Pipeline Completed&#39;<br>    }<br>}</pre><h3>Complete Declarative Pipeline Example</h3><pre>pipeline {<br>        agent any<br>    environment {<br>        APP_NAME = &quot;java-app&quot;<br>        NEXUS_URL = &quot;http://nexus:8081&quot;<br>    }<br>    stages {<br>        stage(&#39;Checkout&#39;) {<br>            steps {<br>                git &#39;https://github.com/example/repo.git&#39;<br>            }<br>        }<br>        stage(&#39;Build&#39;) {<br>            steps {<br>                sh &#39;mvn clean package&#39;<br>            }<br>        }<br>        stage(&#39;Upload Artifact&#39;) {<br>            steps {<br>                echo &quot;Uploading artifact to Nexus&quot;<br>            }<br>        }<br>        stage(&#39;Deploy&#39;) {<br>            steps {<br>                echo &quot;Deploying Application&quot;<br>            }<br>        }<br>    }<br>    post {<br>        success {<br>            echo &quot;Deployment Successful&quot;<br>        }<br>        failure {<br>            echo &quot;Deployment Failed&quot;<br>        }<br>        always {<br>            echo &quot;Pipeline Execution Completed&quot;<br>        }<br>    }<br>}</pre><h3>Typical Real-World Flow</h3><pre>Pipeline<br>   │<br>   ├── Agent<br>   ├── Environment<br>   │<br>   ├── Stages<br>   │      │<br>   │      ├── Checkout<br>   │      ├── Build<br>   │      ├── Test<br>   │      ├── Package<br>   │      └── Deploy<br>   │<br>   └── Post<br>          ├── Success<br>          ├── Failure<br>          └── Always</pre><h3>Scripted Pipeline Structure</h3><p>A <strong>Scripted Pipeline</strong> always starts with the node block.</p><pre>node {<br>    stage(&#39;Build&#39;) {<br>        echo &#39;Building Application&#39;<br>    }<br>    stage(&#39;Test&#39;) {<br>        echo &#39;Testing Application&#39;<br>    }<br>    stage(&#39;Deploy&#39;) {<br>        echo &#39;Deploying Application&#39;<br>    }<br>}</pre><h3>Why do we use node?</h3><p>The node block tells Jenkins:</p><p><em>“Allocate a workspace on an available agent/node and execute the pipeline steps inside it.”</em></p><p>Without a node block, Jenkins does not know where to run the commands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9bc50a2417d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Architecture]]></title>
            <link>https://medium.com/@kavyachadalavada1108/docker-architecture-1114d551d976?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1114d551d976</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 16:38:44 GMT</pubDate>
            <atom:updated>2026-06-11T16:54:55.049Z</atom:updated>
            <content:encoded><![CDATA[<h3>Types of Application Architectures:</h3><h4>Monolithic Architecture</h4><p>In a Monolithic Architecture, all components of an application are deployed together on a single server and typically use a single database.</p><p><strong>Advantages</strong></p><ul><li>Simple to develop and deploy.</li><li>Easy to test during the initial stages of development.</li></ul><p><strong>Disadvantages</strong></p><ul><li>Difficult to scale as the application grows.</li><li>A failure in one component can affect the entire application.</li><li>Maintenance becomes challenging for large applications.</li><li>Deploying changes requires redeploying the whole application.</li></ul><h3>Microservices Architecture</h3><p>In a Microservices Architecture, an application is divided into multiple independent services.</p><p>Each service:</p><ul><li>Performs a specific function.</li><li>Can have its own server and database.</li><li>Can be developed, deployed, and scaled independently.</li></ul><p><strong>Advantages</strong></p><ul><li>Easier scalability.</li><li>Independent deployments.</li><li>Better fault isolation.</li><li>Easier maintenance and upgrades.</li></ul><h3>Evaluation of Docker</h3><p>Before Docker, organizations primarily relied on <strong>Virtual Machines (VMs)</strong> to run and test applications.</p><p>To create and manage VMs, a software layer called a <strong>Hypervisor</strong> was used.</p><p>The hypervisor enables multiple virtual machines to run on a single physical server.</p><p>Each VM contains:</p><ul><li>Guest Operating System</li><li>Application Code</li><li>Libraries &amp; Dependencies</li></ul><p>This approach is known as <strong>Virtualization</strong>.</p><h3>Limitations with Virtual Machines</h3><ul><li>Each VM requires a separate operating system.</li><li>High CPU, memory, and storage consumption.</li><li>Slower startup times.</li><li>Fewer applications can run on the same server.</li><li>Increased infrastructure costs.</li></ul><p>As the number of VMs grows, resource utilization becomes less efficient.</p><p>To overcome these limitations, Docker introduced <strong>Containerization</strong>.</p><h3>What is Docker?</h3><ul><li>Docker is an open-source containerization platform used to build, package, deploy, and run applications inside containers.</li><li>Docker is written in the <strong>Go programming language</strong>.</li><li>Docker uses <strong>OS-level virtualization</strong>, also known as <strong>Containerization</strong>.</li><li>Unlike Virtual Machines, containers share the host operating system kernel instead of running a separate guest operating system.</li><li>Docker is platform-independent, but Docker Engine runs natively on Linux-based kernel features.</li></ul><h3>Containerization</h3><p>Containerization is the process of packaging an application along with:</p><ul><li>Source Code</li><li>Runtime</li><li>Libraries</li><li>Dependencies</li><li>Configuration Files</li></ul><p>This ensures that the application runs consistently across different environments.</p><h3>Why Docker?</h3><p>Before Docker, developers often faced the problem:</p><p>“The application works on my machine but not on the user’s or production machine.”</p><p>This happened because different environments had different:</p><ul><li>Operating systems</li><li>Library versions</li><li>Dependencies</li><li>Configurations</li></ul><p>Docker solves this by packaging the application along with all its dependencies into a container, ensuring consistency across Development, Testing, and Production environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*r3f0zKMt6dtXtMIN9b9mtQ.png" /></figure><h3>Docker Architecture</h3><p>Docker Architecture consists of three main components:</p><p><strong>1. Docker Client</strong></p><ul><li>Docker Client is the interface through which users interact with Docker.</li><li>It is the place where users execute Docker commands.</li></ul><p>Examples:</p><pre>docker run<br>docker pull<br>docker build</pre><p>The Docker Client sends these commands to the Docker Daemon for execution.</p><h3>2<strong>. Docker Host</strong></h3><p>The Docker Host is the machine where Docker is installed.</p><p>It contains:</p><ul><li>Docker Daemon (dockerd)</li><li>Images</li><li>Containers</li><li>Networks</li><li>Volumes</li></ul><h3>Docker Daemon</h3><p>The Docker Daemon is a background service responsible for managing Docker objects.</p><p>It receives requests from the Docker Client and performs operations such as:</p><ul><li>Building images</li><li>Pulling images</li><li>Creating containers</li><li>Starting containers</li><li>Stopping containers</li><li>Managing networks and volumes</li></ul><h3>3. <strong>Docker Registry</strong></h3><p>A Docker Registry is a repository used to store and distribute Docker images.</p><p>Examples:</p><ul><li>Docker Hub</li><li>Private Docker Registry</li><li>Amazon ECR</li><li>Azure Container Registry</li></ul><p>A Registry allows users to:</p><ul><li>Push images</li><li>Pull images</li><li>Share images</li></ul><p>When an image is not available locally, Docker downloads it from the registry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dv7UDhebtRJ03Y9CyAq8VQ.png" /></figure><h3>Docker Images and Containers</h3><p><strong>Docker Image</strong></p><ul><li>A read-only template containing application code, runtime, libraries, dependencies, and configuration files.</li><li>Images serve as blueprints for creating containers.</li></ul><p><strong>Docker Container</strong></p><ul><li>A running instance of a Docker image.</li><li>Contains the application and all required dependencies.</li><li>Provides a consistent environment across development, testing, and production.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5F2xeuVilWEodKIEiP1V-w.png" /></figure><p>You must first remove the container and then remove the image.</p><pre>yum install docker -y          # install docker<br>systemctl start docker         # start the docker service<br>systemctl status docker        # status of docker service<br>docker --version               # Check Docker version<br>docker info                    # Get detailed Docker information<br>docker pull &lt;image-name&gt;       # Pull an image from Docker Hub<br>docker images                  # List all local images<br>docker ps                      # List running containers<br>docker ps -a                   # List all containers (running + exited)<br>docker stop &lt;container-name&gt;   # Stop a specific container<br>docker rm &lt;container-name&gt;     # Remove a container<br>docker stop $(docker ps )      # Stop all running containers<br>docker rm $(docker ps -a)      # Remove all containers<br>docker rmi $(docker images)    # Remove all images<br>docker exec -it &lt;container_name&gt; bash #login to container</pre><h3>Create and run the Container in Detached Mode</h3><pre>docker run -d --name &lt;container-name&gt; &lt;image-name&gt;</pre><p>The -d option runs the container in the background (Detached Mode), allowing the terminal to remain available for other commands.</p><h3>Port Mapping</h3><p>To access an application running inside a container, publish the container port to the host machine.</p><pre>docker run -d --name &lt;container-name&gt; -p hostPort:containerPort &lt;image-name&gt;</pre><p>Example:</p><pre><br>docker run -d --name nginx -p 80:80 nginx<br>                             ↓    ↓<br>                       Host Port  Container Port</pre><p>Where:</p><ul><li>Host Port → Port exposed on the docker host .</li><li>Container Port → Port on which the application runs inside the container.</li></ul><h3>Key Takeaways</h3><ol><li>A Docker Image is required to create a Container.</li><li>Docker service must be running before executing Docker commands.</li><li>Container must be running before you can access it using docker exec.</li><li>A running container cannot be removed directly. Stop the container first, then remove it.</li><li>A Docker Image cannot be removed if one or more containers are using it. Remove the containers first, then delete the image.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1114d551d976" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jenkins Keys concepts: RBAC, Thin Backup, Parameters]]></title>
            <link>https://medium.com/@kavyachadalavada1108/jenkins-keys-concepts-rbac-thin-backup-parameters-b025d760f49f?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b025d760f49f</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 17:22:58 GMT</pubDate>
            <atom:updated>2026-06-03T17:22:58.321Z</atom:updated>
            <content:encoded><![CDATA[<p>The main mechanism behind how users interact with Jenkins is <strong>RBAC (Role-Based Access Control)</strong>.</p><p>RBAC is used to assign permissions to roles, and those roles are then assigned to users or groups. This helps organizations manage access securely and efficiently.</p><h3>How Access is Granted</h3><p>When a user logs in:</p><ol><li>Jenkins identifies and authenticates the user.</li><li>Jenkins checks which role(s) are assigned to that user or group.</li><li>Jenkins grants the permissions associated with those roles.</li><li>The user can perform only the actions allowed by those permissions.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoxJhdh-oQTFvv8FbNxlUg.png" /></figure><h3>Typical Process of Assigning Access</h3><h4>1. Configure the RBAC Plugin</h4><p>Install and configure an RBAC plugin such as <strong>Role-Based Authorization Strategy</strong>.</p><h4>2. Define Roles</h4><p>Examples:</p><ul><li><strong>Admin</strong> — Full control over Jenkins.</li><li><strong>Developer</strong> — Can build jobs, view results, and perform development-related tasks.</li><li><strong>Viewer</strong> — Can only view jobs, dashboards, and build results.</li></ul><h4>3. Assign Permissions to Roles</h4><p>Permissions can include:</p><ul><li>Read</li><li>Write</li><li>Configure</li><li>Create/Delete Jobs</li><li>Build Jobs</li><li>Manage Credentials</li><li>Administer Jenkins</li></ul><h4>4. Assign Roles to Users or Groups</h4><p>Users are authenticated through systems such as:</p><ul><li>Jenkins Internal User Database</li><li>LDAP</li><li>Active Directory</li><li>SSO (Single Sign-On)</li></ul><p>Once a role is assigned, the user automatically receives all permissions associated with that role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*NZdbY05cNjgWm92JvCS6cg.png" /></figure><p>This approach ensures that users have only the permissions required for their responsibilities, improving both security and operational control within Jenkins.</p><h3>💾THIN BACKUP:</h3><p><strong>Thin Backup</strong> is a Jenkins plugin used to back up important Jenkins configuration data, including:</p><ul><li>Job configurations</li><li>Plugin configurations</li><li>Build information</li><li>Build logs</li><li>Other selected Jenkins configuration files</li></ul><p>It supports both <strong>scheduled</strong> and <strong>on-demand</strong> backups, helping administrators restore Jenkins configurations in case of server failure, accidental data loss, or migration to a new server.</p><p><strong>Note:</strong> The backup directory must be accessible to the Jenkins service account and should have appropriate permissions similar to those of the Jenkins home directory to ensure successful backup and restore operations.</p><h3>Configuration Steps</h3><h4>1. Install Thin Backup Plugin</h4><p>Navigate to: Manage Jenkins -&gt; Plugins-&gt;Available plugins-&gt;ThinBackup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y_ckk8nvmwEsf-MT9lcCvA.png" /></figure><h4>2. Create a Backup Directory</h4><p>Create a dedicated backup directory and assign the appropriate permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIGN2jmql3L02vr4fZletA.png" /></figure><h4>3. Configure the Backup Location</h4><p>Navigate to: Manage Jenkins-&gt; System-&gt; ThinBackup configuration</p><p>Provide backup directory path</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVV_h3qM4BWqoWMchgBk1g.png" /></figure><h4>4. Perform Backup or Restore</h4><p>Navigate to: Manage Jenkins -&gt; ThinBackup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcQuk7KbIK7r8LWoP9PEUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xhF6HPBjF7M6-0cUWjcMWQ.png" /></figure><h3>⚙️ Parameters :</h3><p>Parameters make Jenkins jobs dynamic and reusable by allowing users to provide input values when triggering a build.</p><p>Instead of creating separate jobs for different environments or configurations, a single parameterized job can be reused.</p><h3>Why do we use Parameters?</h3><h4>Without Parameters</h4><p>You need separate jobs for:</p><ul><li>Deploy to DEV</li><li>Deploy to TEST</li><li>Deploy to PROD</li></ul><p>With parameters:</p><p>ENVIRONMENT = DEV / TEST / PROD</p><p>One job can deploy to any environment based on the selected parameter value .</p><h3>Workflow</h3><pre>User Clicks Build<br>        ↓<br>Enters/Selects Parameter Values<br>        ↓<br>Jenkins Stores Parameters<br>        ↓<br>Pipeline Uses Parameters<br>        ↓<br>Build/Deploy Executes Accordingly</pre><h3>Choice Parameter</h3><p>A Choice Parameter allows users to select a value from a predefined list.</p><h4>Example: Selecting a Git Branch</h4><h4>Configuration a Free Style Job :</h4><p>Navigate to :</p><p>General -&gt;This project is parameterized-&gt;Add parameter -&gt;Choice Parameter-&gt;Parameter name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QBw-olnM2JTsG-pCfxZiSA.png" /></figure><p>2. Specify the name of the parameter under branch under SCM section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pQgcDImWHp776j8twUU_w.png" /></figure><p>3. Click on Build with Parameters-&gt;select the branch -&gt;Build</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scBZA0CzqL-hb4xIZUfl6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVlYGCcaIMIcKfs6irSIfw.png" /></figure><h4>String Parameter:</h4><p>A String Parameter allows users to enter a custom value during build execution.</p><h4>Configuration a Free Style Job :</h4><p>Navigate to :</p><p>General -&gt;This project is parameterized-&gt;Add parameter -&gt;String Parameter-&gt; Parameter name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7GV8K5TNe5bgp9VCN7lrkQ.png" /></figure><p>Click on Build with Parameters-&gt;select the branch -&gt;Build</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ImYti6R_EB2MngGho2g0jg.png" /></figure><p>Use a Choice Parameter when users should select from a fixed set of predefined values. Use a String Parameter when users need to provide dynamic values, such as branch names, version numbers, or image tags, which may change from build to build.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b025d760f49f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jenkins Master-Agent (Master-Slave) Architecture Explained]]></title>
            <link>https://medium.com/@kavyachadalavada1108/jenkins-master-agent-master-slave-architecture-explained-a91866fa33b2?source=rss-edb054a89df1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a91866fa33b2</guid>
            <dc:creator><![CDATA[Kavya Chadalavada]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 17:52:21 GMT</pubDate>
            <atom:updated>2026-06-01T17:52:21.792Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In Jenkins, the Master-Agent (formerly called Master-Slave) architecture is used to distribute pipeline execution across multiple servers. This helps reduce load on the Jenkins controller and improves overall performance, scalability, and reliability.</p><p>The Jenkins controller is responsible for managing Jenkins, scheduling builds, storing job configurations, collecting build results and monitoring pipeline execution. The agents are the servers where the actual build, test, and deployment tasks are executed.</p><h3>Why Do We Need Master-Agent Architecture?</h3><p>Consider a scenario where a single Jenkins server is responsible for running multiple pipelines for Development, Testing, Staging, and Production environments.</p><p>If all these pipelines run on the same server:</p><ul><li>CPU utilization increases significantly.</li><li>Memory consumption becomes high.</li><li>Build queues grow longer.</li><li>Jenkins performance degrades.</li><li>Large workloads may eventually impact build stability.</li></ul><p>To overcome these challenges, Jenkins allows us to distribute workloads across multiple agent servers.</p><h3>Benefits of Master-Agent Architecture</h3><h4>1. Reduced Load on Jenkins Controller:</h4><p>The controller focuses on orchestration and scheduling while agents handle execution.</p><h4>2. Better Performance:</h4><p>Builds run on dedicated servers, improving speed and stability.</p><h4>3. Scalability:</h4><p>Additional agents can be added whenever build demand increases.</p><h4>4. Environment Isolation:</h4><p>Each environment can have its own dedicated agent.</p><p>Example:</p><ul><li>DEV builds run only on DEV agent.</li><li>TEST builds run only on TEST agent.</li><li>PROD deployments run only on PROD agent.</li></ul><p>This separation reduces risks and improves security.</p><h4>5. Easier Troubleshooting:</h4><p>Since each environment has a dedicated server, logs and issues can be analyzed more efficiently.</p><h3>How Controller and Agents Communicate</h3><p>The Jenkins controller and agents communicate through SSH authentication.</p><p>The controller connects to the agent using:</p><ul><li>Agent Private IP Address</li><li>SSH Credentials</li><li>Private Key Authentication</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-7t-DOwBaSVgBCTyOA3aow.png" /></figure><h3>Hands-On Configuration</h3><h4>Step 1: Launch EC2 Instances</h4><p>Create:</p><ul><li>1 EC2 instance for Jenkins Controller</li><li>1 or more EC2 instances for Jenkins Agents</li></ul><h4>Step 2: Install Jenkins</h4><p>Install Jenkins on both controller and agent servers.</p><p>Verify Jenkins is running successfully.</p><h4>Step 3: Create a Node</h4><p>Navigate to: <strong>Manage Jenkins → Nodes → New Node</strong></p><p>Provide details as :</p><p><strong>Name: </strong>A meaningful name for the node.</p><p>Example: dev-agent</p><h4>Options:</h4><p><strong>Permanent Agent: </strong>Used when creating a new agent.</p><p><strong>Copy Existing Node: </strong>Used when reusing the configuration of an existing node.</p><p>Click <strong>Create</strong>.</p><h4>Step 4: Configure Agent Details:</h4><p><strong>Description: </strong>Provide description if needed</p><p><strong>Number of Executors: </strong>Specify how many builds can run simultaneously on this node.</p><p>Example: 2</p><p>This allows two pipelines to execute at the same time.</p><p><strong>Remote Root Directory</strong>: Specify the location where Jenkins stores workspace and build information.</p><p>Example: /home/ec2-user/jenkins</p><p><strong>Labels</strong>: Labels determine where a pipeline should run.</p><p>Example:</p><pre>dev<br>test<br>stage<br>prod</pre><p>A pipeline executes on an agent only when the label specified in the pipeline matches the node label.</p><h4>Step 5: Configure Agent Connection</h4><h4>Usage</h4><p>Select: Only build jobs with label expressions matching this node</p><p>This ensures that only matching pipelines run on the agent.</p><h4>Launch Method</h4><p>Select: Launch agents via SSH</p><p><strong>Host: </strong>Provide the private IP address of the agent server.</p><h4>Credentials</h4><p>Click <strong>Add Credentials</strong>.</p><p>Choose: Username with private key</p><p>Provide:</p><p><strong>ID / Description: </strong>Any meaningful name.</p><p><strong>Username: </strong>ec2-user</p><p><strong>Private Key</strong></p><p>Select: Enter directly</p><p>Paste the private key (.pem file content) generated while creating the EC2 key pair.</p><h4>Host Key Verification Strategy</h4><p>Select: Non-verifying Verification Strategy</p><p>Save the configuration.</p><h3>Testing the Setup</h3><p>Create separate pipelines and assign labels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*HWOvXMDizzoyyW6Aa7snpA.png" /></figure><p>When a pipeline starts, Jenkins checks the label and automatically routes the job to the corresponding agent.</p><h3>Simple Example: Think of It Like a Restaurant</h3><p>A simple way to understand Master-Agent Architecture is to imagine a restaurant.</p><h3>Restaurant Manager (Controller)</h3><p>The manager:</p><ul><li>Takes orders</li><li>Assigns work</li><li>Tracks progress</li><li>Monitors operations</li></ul><p>But the manager does not cook.</p><h3>Chefs (Agents)</h3><p>The chefs:</p><ul><li>Prepare food</li><li>Cook meals</li><li>Complete the actual work</li></ul><p>The more chefs available, the more orders the restaurant can process simultaneously.</p><p>Jenkins works exactly the same way.</p><p>The Controller manages.</p><p>The Agents execute.</p><p>In simple terms:</p><p><strong>Controller = Brain</strong> 🧠</p><p><strong>Agent = Worker</strong> 👷</p><p>The controller decides <em>what</em> should be done, while the agents actually <em>do the work</em>.</p><h3>Real-World Note</h3><p>This blog demonstrates a basic Jenkins Master-Agent setup for learning and testing purposes.</p><p>In real-world production environments:</p><ul><li>SSH keys are managed securely.</li><li>Credentials are stored in Jenkins Credentials Manager.</li><li>Agents are provisioned dynamically using cloud platforms.</li><li>Access is controlled using IAM roles and security policies.</li><li>Separate build agents may be created for different technologies such as Java, Docker, Kubernetes, or Python workloads.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a91866fa33b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>