<?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 Deepak Sharma on Medium]]></title>
        <description><![CDATA[Stories by Deepak Sharma on Medium]]></description>
        <link>https://medium.com/@deepaksharma2007?source=rss-552cbb956cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1fmW0prbmGlF_cofFpvPxQ.jpeg</url>
            <title>Stories by Deepak Sharma on Medium</title>
            <link>https://medium.com/@deepaksharma2007?source=rss-552cbb956cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:45:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deepaksharma2007/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-in-Docker (DinD): Running Docker Inside a Docker Container]]></title>
            <link>https://deepaksharma2007.medium.com/docker-in-docker-dind-running-docker-inside-a-docker-container-65b6c9c758ab?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b6c9c758ab</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker-inside-docker]]></category>
            <category><![CDATA[linux-capabilities]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 10:31:01 GMT</pubDate>
            <atom:updated>2026-11-17T10:31:01.546Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, we’ll explore how Docker works internally, why Docker commands don’t work inside a standard container, different approaches to Docker-in-Docker, security considerations, and the role of Linux capabilities.</p><p>Welcome to the <strong>14th blog in my Containers and Docker series. </strong>In this blog, we will explore why Docker commands don’t work inside a standard container</p><p>Since Docker is a vast topic, this series will continue to explore everything step by step — from basics to more advanced concepts</p><p><strong>Stay tuned </strong>— new blogs in this series will go live every <strong>Tuesday at 4 PM IST.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cKLvVQ7azkAkUYw39OOdCA.png" /></figure><h3>========================================</h3><h3>Index Table:- All URL of Docker Blogs Series</h3><h3>========================================</h3><ol><li><a href="https://deepaksharma2007.medium.com/633240b556a4">Introduction to Docker:- Containerization vs Virtualization</a></li><li><a href="https://deepaksharma2007.medium.com/5c56156c1295">Docker Networking</a></li><li><a href="https://deepaksharma2007.medium.com/deploy-a-3-tier-architecture-by-docker-568d81ed287c">Deploy a 3-tier Architecture using Docker</a></li><li><a href="https://deepaksharma2007.medium.com/creating-a-robust-wordpress-and-mysql-architecture-6fea5a6e46df">Creating a Robust WordPress and MySQL Architecture</a></li><li><a href="https://medium.com/devops-dev/docker-compose-explained-in-the-simplest-way-with-real-example-198341bcfb24">Learning about Docker Compose</a></li><li>Creating robust architecture by docker compose</li><li>Dockerfile:- Everything About Docker Image</li><li>Building a Docker Image using Docker Compose</li><li>Learning about the underlying things about Docker</li><li>Docker Swarm:- Cluster Management and Scaling Made Easy</li><li>Docker Swarm Networking Deep Dive: Overlay Networks, VXLAN</li><li>Docker Stack:- Combination of Docker Compose &amp; Docker Swarm</li><li>Docker Swarm HA Architecture</li><li>Docker inside Docker:- DIND</li><li>Mirantis Kubernetes Engine (MKE): Managing Docker Swarm and Kubernetes from a Single Platform</li></ol><h4>===================================================</h4><h3>Introduction</h3><p>Docker containers are designed to package and run applications in isolated environments. In most cases, containers run application processes, while the Docker daemon remains on the host operating system.</p><p>However, there are scenarios where we need to run Docker commands from inside a container itself. This concept is known as <strong>Docker-in-Docker (DinD)</strong>.</p><p>Docker-in-Docker is commonly used in:</p><ul><li>CI/CD pipelines</li><li>Automated testing environments</li><li>Build servers</li><li>Container image creation</li><li>Kubernetes and DevOps automation platforms</li></ul><p>In this blog, we’ll explore how Docker works internally, why Docker commands don’t work inside a standard container, different approaches to Docker-in-Docker, security considerations, and the role of Linux capabilities.</p><h3>Understanding How Docker Works</h3><ul><li>A Docker container is simply a process running in an isolated environment.</li><li>The Docker CLI communicates with the Docker daemon using a Unix socket.</li><li>On the host operating system, we can verify the container runtime socket:</li></ul><pre>$ cd /run/containerd <br>$ ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*fVoO6C9192C_gOwt-0Y0pQ.png" /></figure><p>This socket (containerd.sock ) allows the Docker client to communicate with the container runtime and perform operations such as:</p><ul><li>Creating containers</li><li>Starting containers</li><li>Stopping containers</li><li>Managing images</li><li>Managing networks</li></ul><p>Because the host operating system has access to this socket, Docker functions normally.</p><h3>Why Docker Doesn’t Work Inside a Normal Container</h3><p>Let’s launch a standard CentOS container:</p><pre>docker run -it centos:7</pre><p>Inside the container, install Docker:</p><pre>yum install docker -y</pre><p>Verify:</p><pre>which dockerd</pre><p>Attempt to start Docker:</p><pre>dockerd</pre><p>Docker fails to start. Because the container does not have access to the host’s Docker socket or the required kernel capabilities.</p><p>When a container starts, it receives an isolated filesystem and namespace.</p><p>The Docker daemon socket is not automatically exposed inside the container.</p><pre>Host OS<br> ├── Docker Daemon<br> ├── containerd.sock<br> └── Containers</pre><pre>Container<br> └── No access to Docker socket</pre><p>As a result, Docker commands cannot communicate with the host daemon.</p><h3>Attempting to Share the Container Runtime Socket</h3><p>One approach is to mount the host runtime directory into the container.</p><p>Example:</p><pre>docker run -it --name os1 -v /run/containerd:/run/containerd centos:7</pre><p>Inside the container:</p><pre>yum install docker -y</pre><p>Start Docker daemon:</p><pre>/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock</pre><p>Even this often fails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*-P_ioWh0gkPrBlUTWM6cJw.png" /></figure><p>A container does NOT have permission or capability to manage system-level services like Docker daemon or socket creation.</p><p>In particular: Socket creation, Namespace management, Mount operations and Network manipulation are restricted.</p><h3>Method 1: Docker Socket Sharing</h3><p>To make simple we use a pre-created docker image that already contain docker software</p><p>Installing Docker inside an image is not enough — Docker needs access to the <strong>Docker daemon and system resources</strong>, which containers don’t get by default.</p><pre>$ docker pull docker <br>$ docker run -dit  --name os2 -v /run/containerd/containerd.sock:/var/run/docker.sock  docker <br>$ docker ps<br>$ docker exec -it os2  sh</pre><pre>docker ps     //inside container</pre><p>Now the container can communicate directly with the host Docker daemon.</p><pre>Docker Container<br>        │<br>        ▼<br> Docker Socket<br>        │<br>        ▼<br> Host Docker Daemon<br>        │<br>        ▼<br> Host Containers</pre><p>The Docker client inside the container is actually controlling the host Docker daemon.</p><h3>Security Risks of Socket Sharing</h3><p>Although socket sharing is easy, it introduces serious security concerns.</p><p>Because the container gains access to the host Docker daemon:</p><ul><li>It can start new containers.</li><li>It can stop existing containers.</li><li>It can mount host directories.</li><li>It can potentially gain root access to the host.</li></ul><p>A compromised container can effectively compromise the entire Docker host.</p><p>For this reason, socket sharing should be used cautiously and only in trusted environments.</p><h3>Understanding Linux Capabilities</h3><p>Linux capabilities provide fine-grained permissions that determine what a container can do.</p><p>Instead of granting full root access, we can provide only the permissions required.</p><p>Benefits include:</p><ul><li>Enhanced security</li><li>Reduced attack surface</li><li>Better compliance</li><li>Principle of least privilege</li></ul><p>Docker automatically removes many capabilities from containers for safety.</p><p><strong>Example: Changing System Time</strong></p><p>By default, containers cannot modify system time.</p><pre>docker run -it centos:7</pre><p>Attempt:</p><pre>date -s &quot;2025-02-13 14:30:00&quot;</pre><p>Operation fails.</p><p>Grant the required capability:</p><pre>docker run -it --cap-add=SYS_TIME centos:7</pre><p>Now the container can modify system time.</p><h4>Adding and Removing Capabilities</h4><p>Add capability:</p><pre>docker run -it --cap-add=SYS_TIME centos:7</pre><p>Add one capability and remove another:</p><pre>docker run -it --cap-add=SYS_TIME --cap-drop=CHOWN centos:7</pre><p>This allows precise control over container privileges.</p><h4>Privileged Containers</h4><p>Sometimes a container requires almost complete access to host resources.</p><p>Docker provides the:</p><pre>--privileged</pre><p>flag.</p><p>Example:</p><pre>docker run -it --privileged centos:7</pre><p>A privileged container receives:</p><ul><li>All Linux capabilities</li><li>Device access</li><li>Kernel features</li><li>Extended administrative permissions</li></ul><p>This is significantly more powerful than using individual capabilities.</p><h3>Method 2: True Docker-in-Docker (DinD)</h3><p>Docker provides a special image designed specifically for DinD.</p><p>Pull the image:</p><pre>docker pull docker:dind</pre><p>Launch a privileged DinD container:</p><pre>docker run -dit --privileged --name mydind docker:dind</pre><p>Access the container:</p><pre>docker exec -it mydind sh</pre><p>Check processes:</p><pre>ps</pre><p>You’ll notice that the Docker daemon is already running inside the container.</p><p>Architecture:</p><pre>Host Docker<br>      │<br>      ▼<br> DinD Container<br>      │<br>      ▼<br> Docker Daemon<br>      │<br>      ▼<br> Child Containers</pre><p>Unlike socket sharing, this container runs its own independent Docker daemon.</p><h3>Running Containers Inside DinD</h3><p>Pull an image:</p><pre>docker pull httpd</pre><p>Launch a container:</p><pre>docker run -dit --name os1 deepak2007/apache_php</pre><p>Verify:</p><pre>docker ps</pre><p>Access the application:</p><pre>curl 172.17.0.2</pre><p>These containers are running entirely inside the DinD environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*S0I2tQE3DcbtPKtWLfVnnA.png" /></figure><h3>When Should You Use Docker-in-Docker?</h3><p>Docker-in-Docker is useful for:</p><p><strong>CI/CD Pipelines</strong></p><p>Tools like:</p><ul><li>Jenkins</li><li>GitLab CI</li><li>GitHub Actions</li></ul><p>often need Docker access during builds.</p><p><strong>Automated Testing</strong></p><p>Testing Docker images in isolated environments.</p><p><strong>Build Environments</strong></p><p>Creating and validating images without affecting the host.</p><p><strong>Kubernetes Build Pods</strong></p><p>Running temporary build agents inside clusters.</p><h3>Best Practices</h3><ol><li>Prefer least privilege whenever possible.</li><li>Avoid unnecessary use of --privileged.</li><li>Use Docker socket sharing only in trusted environments.</li><li>Restrict access to Docker sockets.</li><li>Use dedicated build nodes for DinD workloads.</li><li>Monitor privileged containers closely.</li><li>Consider rootless containers where possible.</li></ol><h3>Conclusion</h3><p>Docker-in-Docker enables containers to run Docker workloads and is widely used in CI/CD pipelines, testing environments, and automated build systems. However, understanding how Docker communicates through Unix sockets and how Linux capabilities control container permissions is essential before implementing DinD solutions.</p><p>There are two common approaches: sharing the host Docker socket or running a dedicated Docker daemon inside a privileged container using the docker:dind image. While socket sharing is simpler, it introduces significant security risks because the container gains control over the host Docker daemon. Docker-in-Docker provides better isolation but requires elevated privileges and careful management.</p><p>Choosing the right approach depends on your security requirements, operational needs, and level of isolation required. By following the principle of least privilege and understanding Docker capabilities, you can build secure and efficient Docker-in-Docker environments for modern DevOps workflows.</p><p><em>If you found this article helpful, please consider sharing it with your network and following me for more content on AWS, DevOps, Cloud Computing, Kubernetes, Docker, and Infrastructure Engineering. 🚀</em></p><p><em>If you have any questions, suggestions, or feedback, feel free to leave a comment below — I’d be happy to help. Also, let me know which topic you’d like me to cover in the next blog, and I’ll do my best to create detailed content around it.</em></p><p><em>Happy Learning! 😊</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b6c9c758ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Serverless API Architecture Using CloudFront, API Gateway, Lambda, and AWS WAF]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://deepaksharma2007.medium.com/secure-serverless-api-architecture-using-cloudfront-api-gateway-lambda-and-aws-waf-947089a01a57?source=rss-552cbb956cd------2"><img src="https://cdn-images-1.medium.com/max/1536/1*OjXCovWfYe16KLcZg9YB5Q.png" width="1536"></a></p><p class="medium-feed-snippet">In modern cloud-native applications, security, scalability, and performance are some of the most important requirements while exposing&#x2026;</p><p class="medium-feed-link"><a href="https://deepaksharma2007.medium.com/secure-serverless-api-architecture-using-cloudfront-api-gateway-lambda-and-aws-waf-947089a01a57?source=rss-552cbb956cd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://deepaksharma2007.medium.com/secure-serverless-api-architecture-using-cloudfront-api-gateway-lambda-and-aws-waf-947089a01a57?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/947089a01a57</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[aws-cloudfront]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 11:31:01 GMT</pubDate>
            <atom:updated>2026-10-27T11:31:01.809Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Docker Swarm HA Architecture: Understanding Leader, Managers, and Worker Nodes]]></title>
            <link>https://deepaksharma2007.medium.com/docker-swarm-ha-architecture-understanding-leader-managers-and-worker-nodes-1bda8006b10d?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bda8006b10d</guid>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[docker-swarm]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 10:41:01 GMT</pubDate>
            <atom:updated>2026-09-22T10:41:01.493Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the <strong>13th blog in my Containers and Docker series. </strong>In this blog, we will explore how to configure <strong>HA Docker Swarm cluster</strong></p><p>Since Docker is a vast topic, this series will continue to explore everything step by step — from basics to more advanced concepts</p><p><strong>Stay tuned </strong>— new blogs in this series will go live every <strong>Tuesday at 4 PM IST.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v0u1uO8jKh3AfUwxASfQqw.png" /></figure><h3>========================================</h3><h3>Index Table:- All URL of Docker Blogs Series</h3><h3>========================================</h3><ol><li><a href="https://deepaksharma2007.medium.com/633240b556a4">Introduction to Docker:- Containerization vs Virtualization</a></li><li><a href="https://deepaksharma2007.medium.com/5c56156c1295">Docker Networking</a></li><li><a href="https://deepaksharma2007.medium.com/deploy-a-3-tier-architecture-by-docker-568d81ed287c">Deploy a 3-tier Architecture using Docker</a></li><li><a href="https://deepaksharma2007.medium.com/creating-a-robust-wordpress-and-mysql-architecture-6fea5a6e46df">Creating a Robust WordPress and MySQL Architecture</a></li><li><a href="https://medium.com/devops-dev/docker-compose-explained-in-the-simplest-way-with-real-example-198341bcfb24">Learning about Docker Compose</a></li><li>Creating robust architecture by docker compose</li><li>Dockerfile:- Everything About Docker Image</li><li>Building a Docker Image using Docker Compose</li><li>Learning about the underlying things about Docker</li><li>Docker Swarm:- Cluster Management and Scaling Made Easy</li><li>Docker Swarm Networking Deep Dive: Overlay Networks, VXLAN</li><li>Docker Stack:- Combination of Docker Compose &amp; Docker Swarm</li><li>Docker Swarm HA Architecture</li><li>Docker inside Docker:- DIND</li><li>Mirantis Kubernetes Engine (MKE): Managing Docker Swarm and Kubernetes from a Single Platform</li></ol><h4>===================================================</h4><h3>Introduction</h3><p>One of the biggest advantages of Docker Swarm is its ability to provide <strong>High Availability (HA)</strong> and <strong>Fault Tolerance</strong> for containerized applications.</p><p>In a traditional environment, if a server hosting containers goes down, applications become unavailable. Docker Swarm solves this problem by automatically rescheduling containers to healthy nodes in the cluster.</p><p>However, achieving high availability for application containers is only one part of the story. What happens if the Swarm Manager itself goes down?</p><p>If the manager node becomes unavailable, cluster management operations such as scheduling, scaling, and service updates can be impacted. To eliminate this single point of failure, Docker Swarm supports multiple manager nodes and uses the <strong>Raft Consensus Algorithm</strong> to maintain cluster state and elect a leader.</p><p>In this blog, we’ll explore how Docker Swarm achieves high availability, understand manager quorum, leader election, the split-brain problem, and best practices for building a fault-tolerant Swarm cluster.</p><h3>High Availability in Docker Swarm</h3><p>Let’s begin with a simple Swarm cluster.</p><pre> Manager Node<br>    |<br>    │<br> ┌──┴──-┐<br> │      │<br>Worker1 Worker2</pre><p>Suppose we deploy an application with multiple containers across worker nodes.</p><p>If one worker node fails:</p><pre>Worker1 ❌</pre><p>Docker Swarm automatically detects the failure and launches replacement containers on healthy nodes.</p><pre>Worker2 ✓</pre><p>This ensures:</p><ul><li>Application availability</li><li>Automatic recovery</li><li>Fault tolerance</li><li>Minimal downtime</li></ul><p>This behavior makes Docker Swarm highly resilient against worker node failures.</p><h3>The Problem with a Single Manager</h3><p>Consider the following architecture:</p><pre>  Manager   <br>     │<br> ┌───┴───┐<br> │       │<br>Worker1 Worker2</pre><p>The manager node is responsible for:</p><ul><li>Scheduling containers</li><li>Maintaining cluster state</li><li>Service updates</li><li>Scaling operations</li><li>Node management</li></ul><p>If the manager node goes down:</p><pre>Manager ❌</pre><p>The cluster loses its management capabilities.</p><p>Although running containers may continue working, administrative operations become unavailable.</p><p>This creates a single point of failure.</p><h3>Adding Multiple Manager Nodes</h3><p>To overcome this limitation, Docker Swarm allows us to add additional manager nodes.</p><p>Generate a manager join token:</p><pre>docker swarm join-token manager</pre><p>Docker provides a command similar to:</p><pre>docker swarm join --token &lt;manager-token&gt; &lt;manager-ip&gt;:2377</pre><p>Execute this command on the node you want to promote as a manager.</p><p>Verify:</p><pre>docker node ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*qsWci0zKCf5NOpNNmlz-tg.png" /></figure><p>Example:</p><pre>MANAGER-1  Leader<br>MANAGER-2  Reachable</pre><p>Now the cluster has two manager nodes.</p><p>When we run the docker info command, we may notice an issue because both manager nodes are active simultaneously. In this setup, proper fault tolerance for the manager node is not achieved, as the cluster does not have a clearly defined leader to ensure consistent control-plane operation.</p><pre>$ docker info</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*7gcDojr0wb-AeFG3JDiMow.png" /></figure><p>This warning means your <strong>Docker Swarm cluster is not configured in a fault-tolerant way for managers</strong>.In this case if the main (leader) master goes down then entire cluster goes down. Because of Split-Brain problem.</p><h3>The Split-Brain Problem</h3><p>Imagine two manager nodes both believing they are leaders.</p><pre>Manager-1 → Leader<br>Manager-2 → Leader</pre><p>Now:</p><ul><li>Manager-1 scales service to 5 replicas</li><li>Manager-2 scales service to 10 replicas</li></ul><p>Which decision should the cluster follow?</p><p>This situation is known as the <strong>Split-Brain Problem</strong>.</p><p>To prevent conflicting decisions, Docker Swarm allows only one leader at a time.</p><p>The Raft algorithm ensures a single leader is elected.</p><h3>What is Quorum?</h3><p>A quorum is the minimum number of manager nodes that must agree before decisions are accepted.</p><p>Docker Swarm requires a majority of manager nodes to be available.</p><p>Formula:</p><pre>Fault Tolerance = (N - 1) / 2</pre><p>Where:</p><ul><li>N = Number of manager nodes</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*wNzvOQqyIkw6fo-N8yeawQ.png" /></figure><h3>How HA Swarm Cluster works</h3><p>The <strong>manager node</strong> maintains the overall state of the Docker Swarm cluster. All manager nodes coordinate with each other using the <strong>Raft consensus algorithm</strong>, which ensures that the cluster remains consistent and agrees on a single source of truth.</p><p>However, if multiple manager nodes were allowed to act independently as leaders, their decisions could conflict with each other. This situation is known as the <strong>split-brain problem</strong>. To prevent this, Docker Swarm ensures that only <strong>one active leader</strong> is elected at any given time.</p><p>To maintain consistency and fault tolerance, Swarm relies on the concept of <strong>quorum</strong>, which means a majority of manager nodes must be available to make decisions. For a cluster with <em>N</em> managers, the fault tolerance is calculated as:</p><blockquote><strong><em>Fault Tolerance = (N — 1) / 2</em></strong></blockquote><p>This means the cluster can only tolerate failures of up to half of the manager nodes (rounded down). Therefore, an odd number of manager nodes is always recommended to ensure proper quorum and high availability.</p><p>For example, at least <strong>3 manager nodes</strong> are required to achieve fault tolerance. With only 2 manager nodes, if the leader node goes down, the cluster loses quorum and becomes unstable, which leads to the warning we observed earlier.</p><p>To resolve this issue, we must first restore the failed leader node and then add another manager node so that the cluster has <strong>3 manager nodes</strong>, ensuring proper quorum and fault tolerance.</p><h3>Achieving Manager High Availability</h3><p>Let’s add a third manager node. So I am adding one more manager Node by using</p><pre>docker swarm join-token manager   //we get command</pre><p>we use a <strong>manager join token</strong>, then the node will join the Swarm cluster as a <strong>manager node</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*o9wKM0z2cJWUo-PEvQS5fA.png" /></figure><p>Now that we have <strong>3 manager nodes</strong>, the cluster achieves proper <strong>quorum and fault tolerance</strong>. In this setup, if the current <strong>leader node fails</strong>, the remaining manager nodes automatically initiate a new leader election using the <strong>Raft consensus algorithm</strong>.</p><p>As a result, one of the remaining managers is elected as the new leader, ensuring uninterrupted cluster management. The Swarm continues to function normally, and all services remain running without disruption.</p><p>This demonstrates the benefit of having a <strong>3-manager setup</strong>, where the cluster can tolerate failures while maintaining availability and stability.</p><h3>Understanding Manager and Worker Tokens</h3><p>Docker Swarm maintains separate tokens for managers and workers.</p><h4>1. Manager Token</h4><p>Used to join a node as a manager.</p><pre>docker swarm join-token manager</pre><h4>2. Worker Token</h4><p>Used to join a node as a worker.</p><pre>docker swarm join-token worker</pre><p>This separation ensures proper role-based cluster membership.</p><h3>Scaling Services in a Highly Available Cluster</h3><p>Docker Swarm makes scaling easy.</p><p>Using the scale command:</p><pre>docker service scale myweb=5</pre><p>Using the update command:</p><pre>docker service update --replicas=5  mypyapp_web</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*A5Ysz7zlKlhoerG12Dq6tA.png" /></figure><p>The update command provides additional options such as:</p><ul><li>Rolling updates</li><li>Update delays</li><li>Rollback controls</li><li>Placement constraints</li></ul><p>Because of this flexibility, many administrators prefer the update command.</p><h3>Promoting and Demoting Nodes</h3><p>Docker Swarm also provide facility to changing node roles dynamically. We can promote worker node to manager node and vise-versa</p><h4>1. Promote Worker to Manager</h4><pre>$ docker node ls <br>$ docker node -h<br>$ docker node promote ip-172-32.internal<br>$ docker node ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*t7ReTn0dbzRbppfuf1P2NA.png" /></figure><p>The worker becomes a manager.</p><h4>2. Demote Manager to Worker</h4><pre>$ docker node demote manager-node<br>$ docker node ls </pre><p>Docker prevents demotion if it would break quorum.</p><p>This protects cluster stability.</p><h3>Manager-Only Nodes</h3><p>By default, a Docker Swarm cluster allows manager nodes to act as both <strong>managers and workers</strong>. This means that when a service is deployed, containers may also be scheduled on the <strong>leader (manager) node</strong>.</p><p>However, this is not considered a best practice. It is recommended to configure <strong>manager-only nodes</strong>, where manager nodes are dedicated solely to cluster management tasks and do not run application workloads.</p><p>Running containers on the leader node can impact its performance, as it is responsible for critical cluster operations such as scheduling, state management, and maintaining consensus. To ensure stability and high availability, workloads should be restricted to worker nodes, keeping the manager nodes exclusively focused on managing the Swarm cluster.</p><p>Example:</p><pre>Manager-1<br> ├─ Management Tasks<br> └─ Application Containers</pre><p>Because application workloads consume:</p><ul><li>CPU</li><li>Memory</li><li>Network bandwidth</li></ul><p>This can affect manager performance.</p><h4>Configuring a Manager-Only Node</h4><p>To prevent workloads from running on a manager:</p><pre>$ docker node update --availability drain manager-node<br>$ docker node ls </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*eghnsGvfYoYyAdN8dQWu1A.png" /></figure><p>Result:</p><pre>Manager Node<br>  └─ Management Only</pre><pre>Worker Nodes<br>  └─ Run Containers</pre><p>Docker automatically migrates existing containers from the manager to worker nodes.</p><p>This is considered a best practice for production environments.</p><h3>Best Practices for Docker Swarm HA Clusters</h3><ol><li>Use an odd number of manager nodes.</li><li>Maintain at least three managers in production.</li><li>Configure managers as manager-only nodes using Drain mode.</li><li>Monitor manager health continuously.</li><li>Backup Swarm state regularly.</li><li>Avoid running heavy workloads on managers.</li><li>Use worker nodes for application containers.</li></ol><h3>Conclusion</h3><p>Docker Swarm provides built-in fault tolerance by automatically redistributing containers when worker nodes fail. However, true high availability requires protecting not only the application workloads but also the cluster management layer.</p><p>By deploying multiple manager nodes, leveraging the Raft Consensus Algorithm, and maintaining quorum with an odd number of managers, Docker Swarm ensures continuous cluster operations even during manager failures. Features such as automatic leader election, node promotion and demotion, and manager-only nodes further strengthen the reliability of the platform.</p><p>For production environments, a three-manager architecture combined with dedicated worker nodes is considered the minimum recommended setup for achieving a resilient, highly available Docker Swarm cluster capable of handling both infrastructure failures and application growth.</p><p><em>If you found this article helpful, please consider sharing it with your network and following me for more content on AWS, DevOps, Cloud Computing, Kubernetes, Docker, and Infrastructure Engineering. 🚀</em></p><p><em>If you have any questions, suggestions, or feedback, feel free to leave a comment below — I’d be happy to help. Also, let me know which topic you’d like me to cover in the next blog, and I’ll do my best to create detailed content around it.</em></p><p><em>Happy Learning! 😊</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bda8006b10d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS API Gateway Security: Control Who Can Access Your API (Step-by-Step)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://deepaksharma2007.medium.com/aws-api-gateway-security-control-who-can-access-your-api-step-by-step-b4baebe84ab6?source=rss-552cbb956cd------2"><img src="https://cdn-images-1.medium.com/max/1536/1*buF-VPEj2SAJ-rCHWOjduA.png" width="1536"></a></p><p class="medium-feed-snippet">In the previous blog, we created an API to upload images to an S3 bucket. In this blog, we will explore how to apply Usage Plans in API&#x2026;</p><p class="medium-feed-link"><a href="https://deepaksharma2007.medium.com/aws-api-gateway-security-control-who-can-access-your-api-step-by-step-b4baebe84ab6?source=rss-552cbb956cd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://deepaksharma2007.medium.com/aws-api-gateway-security-control-who-can-access-your-api-step-by-step-b4baebe84ab6?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4baebe84ab6</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 10:31:00 GMT</pubDate>
            <atom:updated>2026-09-08T10:31:00.859Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Upload Images to S3 Using Amazon API Gateway (Step-by-Step Guide)]]></title>
            <link>https://deepaksharma2007.medium.com/how-to-upload-images-to-s3-using-amazon-api-gateway-step-by-step-guide-261e69758978?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/261e69758978</guid>
            <category><![CDATA[aws-api-gateway]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 10:31:01 GMT</pubDate>
            <atom:updated>2026-08-25T10:31:01.341Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern cloud applications, handling file uploads efficiently is a common requirement. Whether you’re building a web app, mobile backend, or microservice, you often need a reliable way to store images securely and access them quickly.</p><p>This is where AWS services like Amazon API Gateway and Amazon S3 come into play. By combining these services, you can build a fully serverless solution to upload and manage images without worrying about infrastructure.</p><p>In this article, we will walk through a step-by-step approach to integrate API Gateway with S3 and enable image uploads. We’ll also cover an important concept — handling binary data in API Gateway — so that your images are stored and retrieved in the correct format.</p><p>By the end of this guide, you’ll have a working API that can upload images directly to S3 and return them correctly when accessed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ackKlH-l5OGo4abNlsFqQg.png" /></figure><p>Let’s first understand about S3 and Amazon API gateway service</p><h4>Amazon S3 (Simple Storage Service)</h4><p>Amazon S3 is a scalable object storage service provided by AWS that allows you to store and retrieve any type of data, such as images, videos, and documents. It stores data in buckets and is designed for high durability, availability, and security, making it ideal for storing static assets and backups.</p><h4>Amazon API Gateway</h4><p>Amazon API Gateway is a fully managed service that allows you to create, publish, and manage APIs at scale. It acts as an entry point for your applications, enabling clients to securely interact with backend services like Lambda functions or S3.</p><p>Let’s start our practical</p><h3>Step-1 Create a S3 bucket</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IMlQnDGni0_mwn-eefuNUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jA55tXwD8x8oEERrfjNV7g.png" /></figure><h3>Step-2 IAM Role</h3><p>We will create a IAM role to provide API gw permission to connect S3 and upload files inside S3 bucket and also cloudwatch permission to store logs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*brOc2rTUWOprQ_tE9isqoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ZU25J5V2EU_D-bi52disw.png" /></figure><p>We also add permission to allow api gw to upload objects in S3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKjewEGgNYfjzZNni0tFjA.png" /></figure><p>Now we will create API</p><h3>Step-3 Create API Gateway and attach Role</h3><p>Go to API Gateway → Create API → Select “REST API”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sa3d8RV-P8rEqcuSlT04HA.png" /></figure><p>Give name to API and keep other settings by default</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wGQEnVFNUK4PU0OdhbyYUA.png" /></figure><p>Keep by default settings and create API</p><p>Now we will create resources “upload” to upload objects</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F3jZeDIgRmfEOjp19FXm1w.png" /></figure><p>WE also want that client has facility to select bucket and file that he wants to upload in S3 bucket . For this we need to create resources in such as way that stores bucket name dynamically , We can’t fix this name . So I created a sub-resources inside in “upload” resource by using the path parameter .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEJ8xwF0K7wWIjAny-jsXQ.png" /></figure><p>For this we need to create resource and put inside {} , so it take input from client and store in our variable “mybucketname” and that we will use in further steps.</p><p>Similarly the client will upload multiple files , so we can’t fix file name also , so we need to create resource and name should be put in {} , so it can store object name in this variable “filename”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQuvmjDLVLlwoJJd3E_YnA.png" /></figure><p>Make sure {mybucketname} resource created inside “upload” resource and “{filename}” resource created inside the “{mybucketname}” resources</p><p>We need to create “PUT” method to upload objects inside our “{filename}” resources</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hriCgmh6ktYmQjP9LuybQ.png" /></figure><p>We slect “AWS services” and provides our bucket region and select S3 service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rk8tNY5N1cKeV-dQr8uB7A.png" /></figure><blockquote><strong>Create Method</strong></blockquote><p>Now our setup is look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qMbMEafxmhmk9J2wpTwmcA.png" /></figure><p>We are now creating two variable “ <strong>{folder} and {key}</strong>” and in next step we will map these variable with “<strong>{mybucketname} and {filename}</strong>” . So these variable get the values that client passes and API gateway connect to S3 and upload object in given bucket .</p><p><strong>Note:- </strong>Also we need to provide our IAM role ARN in Execution Role section . For that open new tab for IAM role and get ARN of our role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kWHGMWYHtDp7N1lWdWRhdA.png" /></figure><h3>Step-4 Mapping of URL path parameters</h3><p>Now we will map Variables “<strong> {folder} and {key} “</strong> with “<strong>{mybucketname} and {filename} </strong>“. So these variable get the values that client passes and API gatway connect to S3 and upload object in given bucket .</p><p>For that we will go to Integration type → Edit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fU8TEUIxy359vx6qNNgpbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kin-Lh2ys8hkmxsvE93nUA.png" /></figure><p>And Save it . Now we are ready to deploy our API .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*k2BSZlFATGbn3Z7BDi7rYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*CP4WSXCGwXtGUx38MdsIGQ.png" /></figure><p>Now we get the URL to upload objects in the S3 bucket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HX66alV6KiCPFtZP-2ld-g.png" /></figure><p>Now we are getting error , if we provide wrong bucket name that does not exist in my account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXA2oOoiFCCwnLO3Xmiokw.png" /></figure><p>Now we will pass correct path and our file .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3rleEBKgAS7FV-7yHPbNA.png" /></figure><p>We have seen that “1” means our file “hello.txt” is successfully uploaded. But we haven’t added a file , so we can see in the s3 bucket the size of hello.txt is 0 kb.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-mXM38XThzHm43r6BarNA.png" /></figure><p>Now I will add my file also from local system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*yzo6qkGqLRDU9vYVSN_2eA.png" /></figure><p>To upload a file ,we need to select Body → binary → select file</p><p>As I have given “deepak.txt” so the file uploaded in S3 bucket name should be “deepak.txt” not “debug.log”. The output is “1” , it means successfully uploaded our file in S3 bucket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMVGed66pBm1lze_nDSLpA.png" /></figure><h3>Note:-</h3><ol><li>When an image is uploaded to the bucket, it is stored in binary format. However, when we try to open or access the image through the API, we only see binary data instead of the actual image.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-QUaydG1LyDZ5kkvwNPvDw.png" /></figure><p>This happens because the API is not configured to handle binary media types. To properly display or process the image, we need to explicitly inform the API that it should support binary data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ND6W_wBi-YH8AYBXajq2cg.png" /></figure><p>To fix this, we must go to the API settings in Amazon API Gateway and configure the appropriate binary media types (such as image/png, image/jpeg).</p><p>For this , we need to go API settings and choose the type of content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pk4ILpfp8Nk7gfgIUOLB4A.png" /></figure><p>I want that this API should support images binary</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hz30JKRoLyWEvCG9JLGG8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DFehHXzOh_VP4LhtlHWnAg.png" /></figure><p>After adding both image content types, the API now supports handling binary image data. However, for these changes to take effect, we need to redeploy the API in Amazon API Gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*V_0pO0TPWyPKdrn2XRTaDg.png" /></figure><p>Now we can upload images and those images we can access in jpeg/png format. Now I am again uploading an image and we are able to see it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeefTs7CkZOO2ES-FCQB-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DhRGV7U5S7LvhEeThOKUww.png" /></figure><p>Now we are able to access the images in the correct format. Similarly, if we want our API to support video data, we need to add the appropriate binary media types for videos in the API settings under Binary Media Types. After making these changes, we must redeploy the API in Amazon API Gateway for them to take effect.</p><h3>Conclusion :-</h3><p>In this blog, we successfully integrated <strong>Amazon API Gateway</strong> with <strong>Amazon S3</strong> to enable direct file uploads using the <strong>PUT method</strong>. We explored how to configure the API to handle binary data and made it capable of supporting image uploads.</p><p>This setup gives us a powerful, serverless way to upload files directly to S3 without needing a dedicated backend server.</p><p>At this stage, our API is publicly accessible, which means <strong>anyone can upload objects to the S3 bucket</strong>. While this is great for testing and understanding the flow, it also introduces security risks in real-world scenarios.</p><p>👉 In the next blog, we will take this architecture to the next level by adding <strong>security and access control</strong>. We’ll learn how to:</p><ul><li>Protect APIs using <strong>API Keys</strong></li><li>Implement <strong>Usage Plans</strong> to control traffic</li><li>Restrict unauthorized access</li><li>Build a more production-ready and secure upload system</li></ul><p>Stay tuned as we move from a functional setup to a <strong>secure and scalable architecture</strong> 🚀</p><p><em>If you found this article helpful, please consider sharing it with your network and following me for more content on AWS, DevOps, Cloud Computing, Kubernetes, Docker, and Infrastructure Engineering. 🚀</em></p><p><em>If you have any questions, suggestions, or feedback, feel free to leave a comment below — I’d be happy to help. Also, let me know which topic you’d like me to cover in the next blog, and I’ll do my best to create detailed content around it.</em></p><p><em>Happy Learning! 😊</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=261e69758978" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Centralized Web Content Management with EC2 and EFS]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://deepaksharma2007.medium.com/centralized-web-content-management-with-ec2-and-efs-95c85721f433?source=rss-552cbb956cd------2"><img src="https://cdn-images-1.medium.com/max/1536/1*hNrPqN-CKtnuIHW6whqagg.png" width="1536"></a></p><p class="medium-feed-snippet">In this blog, we will walk through a step-by-step approach to connect EC2 instances with EFS, enabling a centralized storage solution that&#x2026;</p><p class="medium-feed-link"><a href="https://deepaksharma2007.medium.com/centralized-web-content-management-with-ec2-and-efs-95c85721f433?source=rss-552cbb956cd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://deepaksharma2007.medium.com/centralized-web-content-management-with-ec2-and-efs-95c85721f433?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/95c85721f433</guid>
            <category><![CDATA[ef]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 10:31:01 GMT</pubDate>
            <atom:updated>2026-08-10T10:31:01.422Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Learn Docker Swarm: Cluster Management and Scaling Made Easy]]></title>
            <link>https://blog.devops.dev/learn-docker-swarm-cluster-management-and-scaling-made-easy-1f5fa0793379?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f5fa0793379</guid>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker-swarm]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 10:31:01 GMT</pubDate>
            <atom:updated>2026-07-23T12:14:41.143Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m excited to continue this blog series on containers and Docker! This is the<strong> 10th blog</strong> in the series, where we will dive into <strong>Docker and learn about docker swarm.</strong></p><p>In this blog, we will learn how to build a cluster and deploy containers across multiple nodes for better scalability and management.</p><p>Since Docker is a vast topic, this series will continue to explore everything step by step — from basics to more advanced concepts</p><p><strong>Stay tuned </strong>— new blogs in this series will go live every <strong>Tuesday at 4 PM IST.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVnBEn3suzOfjN_LwXVEGg.png" /></figure><h3>========================================</h3><h3>Index Table:- All URL of Docker Blogs Series</h3><h3>========================================</h3><ol><li><a href="https://deepaksharma2007.medium.com/633240b556a4">Introduction to Docker:- Containerization vs Virtualization</a></li><li><a href="https://deepaksharma2007.medium.com/5c56156c1295">Docker Networking</a></li><li><a href="https://deepaksharma2007.medium.com/deploy-a-3-tier-architecture-by-docker-568d81ed287c">Deploy a 3-tier Architecture using Docker</a></li><li><a href="https://deepaksharma2007.medium.com/creating-a-robust-wordpress-and-mysql-architecture-6fea5a6e46df">Creating a Robust WordPress and MySQL Architecture</a></li><li><a href="https://medium.com/devops-dev/docker-compose-explained-in-the-simplest-way-with-real-example-198341bcfb24">Learning about Docker Compose</a></li><li>Creating robust architecture by docker compose</li><li>Dockerfile:- Everything About Docker Image</li><li>Building a Docker Image using Docker Compose</li><li>Learning about the underlying things about Docker</li><li>Docker Swarm:- Cluster Management and Scaling Made Easy</li><li>Docker Swarm Networking Deep Dive: Overlay Networks, VXLAN</li><li>Docker Stack:- Combination of Docker Compose &amp; Docker Swarm</li><li>Docker Swarm HA Architecture</li><li>Docker inside Docker:- DIND</li><li>Mirantis Kubernetes Engine (MKE): Managing Docker Swarm and Kubernetes from a Single Platform</li></ol><h4>==================================================</h4><h3>Introduction</h3><p>As applications grow, running containers on a single system is no longer enough. We need a way to manage containers across multiple machines, ensure high availability, and scale applications seamlessly. This is where <strong>Docker Swarm</strong> comes into the picture.</p><p>Docker Swarm is Docker’s native clustering and orchestration tool that allows us to combine multiple nodes into a single cluster and manage containers efficiently. Instead of running containers manually on one system, we can distribute workloads across multiple nodes, making our applications more reliable and scalable.</p><p>In this blog, we will learn how to <strong>create a Docker Swarm cluster and deploy containers across a multi-node environment</strong>. By the end, you will understand how to manage services, scale applications, and work with distributed container infrastructure in a simple and practical way.</p><h3>Challenges of Running Containers on a Single Node</h3><ol><li><strong>Single Point of Failure</strong> → We run our app in a container and the container is running inside docker host (base linux OS). So due to any reason if the base OS goes down then the client loses connectivity with the app . This is called Single Point of failure (SPOF)</li></ol><ul><li>If the node/server goes down, all running containers and applications become unavailable.</li></ul><p><strong>2. Limited Scalability</strong> → Resources such as CPU, RAM, and storage are limited to a single machine.</p><p><strong>3. Resource Contention</strong> → Multiple containers compete for the same system resources, which can reduce performance.</p><p><strong>4. No High Availability</strong> → There is no backup node to automatically handle workloads if the server fails.</p><p><strong>5. Difficult Load Balancing</strong> → Traffic cannot be distributed across multiple nodes efficiently.</p><p><strong>6. Limited Fault Tolerance</strong> → Hardware or software failures directly impact all containers running on that node.</p><p><strong>7. Maintenance Downtime</strong> → System updates or maintenance can stop all applications hosted on the node.</p><p><strong>8. Not Suitable for Large Production Environments</strong> → Managing growing applications on a single node becomes difficult and less reliable.</p><h3>Difference between Docker and Docker Swarm</h3><h4>Docker</h4><p>Docker is a platform used to <strong>build, package, and run applications inside containers</strong>. A container is a lightweight, isolated environment that includes the application along with all its dependencies, so it runs the same way everywhere.</p><p>Instead of installing software directly on a system, Docker allows you to package everything into an image and run it as a container. These containers share the host operating system kernel, which makes them <strong>fast, efficient, and portable</strong>.</p><p>👉 In simple terms:<br> <strong>Docker = Tool to create and run containers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1j1-i1AnJdBBu4yExK89w.png" /></figure><p>Docker runs containers on a single host using the host OS kernel.</p><h4>Docker Swarm</h4><p>Docker Swarm is Docker’s built-in <strong>container orchestration tool</strong>. It is used to <strong>manage and run containers across multiple machines (nodes)</strong> as a single cluster.</p><p>With Docker Swarm, you can:</p><ul><li>Combine multiple systems into one cluster</li><li>Deploy containers across multiple nodes</li><li>Automatically handle load balancing</li><li>Scale applications easily</li><li>Maintain high availability</li></ul><p>👉 It works with two main components:</p><ul><li><strong>Manager Node</strong> → Controls and manages the cluster</li><li><strong>Worker Nodes</strong> → Run the containers</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BpJoGOy1U_PTjaMB0T3x-g.png" /></figure><p>Swarm mode provides clustering, scheduling, service discovery and more across multiple nodes.</p><h4>KEY BENEFITS</h4><ol><li>High Availability</li><li>Scalability</li><li>Load Balancing</li><li>Self-Healing</li><li>Rolling Updates</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*eCpRmR6HhCtCEJXzsgWa1Q.png" /></figure><h3>Architecture of Docker Swarm</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grB_i8aNuLicuWYRii2liA.png" /></figure><p>Docker swarm contains mainly two components</p><ol><li>Manager Node</li><li>Worker Node</li></ol><h4>🧠 Manager Node</h4><p>The <strong>manager node</strong> is responsible for controlling and managing the entire Docker Swarm cluster. It handles cluster initialization, scheduling tasks, and maintaining the desired state of services. It decides which containers should run on which nodes and ensures that everything is working as expected. If any container fails, the manager automatically reschedules it to maintain availability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*TlNtWkNNaOemp5u1huelVw.png" /></figure><p>In simple terms, the manager node acts as the <strong>brain of the cluster</strong>, making all decisions and coordinating operations.</p><p>👉 Its main uses:</p><ul><li><strong>Cluster Management</strong> → Initializes and maintains the swarm</li><li><strong>Scheduling</strong> → Decides which node will run which container</li><li><strong>State Management</strong> → Keeps track of desired vs actual state</li><li><strong>Service Orchestration</strong> → Deploys and manages services</li><li><strong>Load Balancing</strong> → Distributes traffic across containers</li></ul><p>👉 In simple terms:<br> <strong>Manager node = Brain of the cluster</strong></p><h4>⚙️ Worker Node (Slave Node)</h4><p>The <strong>worker node</strong> is responsible for executing the tasks assigned by the manager node. It runs the containers and uses system resources like CPU and memory to keep applications running. Worker nodes continuously communicate with the manager and report their status. They do not make decisions but simply follow the instructions given by the manager. In simple terms, the worker node acts as the <strong>execution layer</strong>, doing the actual work in the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*ddTHP3eBByCCt9k00Z-_Rw.png" /></figure><p>The <strong>worker node</strong> is responsible for <strong>running the containers</strong> assigned by the manager.</p><p>👉 Its main uses:</p><ul><li><strong>Execute Tasks</strong> → Runs containers (tasks)</li><li><strong>Report Status</strong> → Sends updates back to manager</li><li><strong>Resource Usage</strong> → Uses CPU, memory to run apps</li></ul><p>👉 In simple terms:<br> <strong>Worker node = Hands of the cluster</strong></p><h3>Creating Docker Swarm Cluster</h3><ul><li>We need software to create clusters . Docker Swarm is a tool that used to create a cluster. This cluster contains worker nodes and manager nodes.</li><li>We need to install docker in all nodes of cluster</li><li>We launch 1 master and 2 slave nodes</li></ul><h4>1. Configure Manager Node</h4><p>First we will configure Manager node. First we need to install docker</p><pre>$ yum install docker -y<br>$ systemctl start docker <br>$ systemctl enable docker <br>$ docker info   //we can see docker swarm is inactive</pre><p>To create Swarm Cluster</p><pre>$ docker swarm -h <br>$ docker swarm init -h<br>$ docker swarm init --advertise-adir  172.31.2.87<br>$ docker node ls </pre><p>It will make this system as Master and we can see swarm is active now (docker info)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*6DjlYewnLzNdy30fovgfFA.png" /></figure><p>Here we need to use that IP where the slave can connect to the master . So we mostly used the main network card IP.</p><blockquote>$ docker node ls</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*IF3IWVAlZ4ah1uS013JUeg.png" /></figure><p>We can see one node is connected in this cluster . This is Master node , we can see Manager status = Leader</p><h4>2. Configure Slave Node</h4><p>When we configured the manager node then we got a command that docker join command will help us to join the slave node to the master node. Also we need to make sure that the slave node has connectivity to master node IP. (We can edit master node security group and allow all network to make simple or we can allow 2377 port only )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*EpAhr1CDgCi6n_S2E4dfww.png" /></figure><pre>$ ping 172.31.2.87    <br>$ docker swarm join --token SWMTKH-1-29ncn  172.31.2.87:2377</pre><p>We can see slave node has connectivity to master node. Then we can join slave to the Swarm cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*JmcwzMWKHBy4JDkAHA6IIQ.png" /></figure><p>We can see that swarm is active in the worker node now and it is not a manager node.</p><p>Now in the master node we can see one more node is connected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*8RODGCsrJwh7N_30Cwem9A.png" /></figure><h4>3. Run Application in Swarm CLuster</h4><p><strong>To launch container by docker swarm</strong></p><pre><br>Master node :-  <br>$ docker service create --name webserver httpd <br>$ docker service ls webserver</pre><p>It will launch a container with an httpd image .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*XbXPgpOfUcgQRKtPRXnSmA.png" /></figure><p>Now if we shutdown(init 0) the slave node where the container is running then its service will create a new container in the running slave node .</p><h4>4. Exposing our service</h4><p>By default the nature of service is private . When we create a service then it is isolated . But we want that client can connect to our service then we need to expose our service at time of creation .</p><pre>docker service inspect webserver </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*4JktcXcFVTNS_9lOfLDl9g.png" /></figure><pre>$ docker service -h <br>$ docker service create --name webserver --publish  8080:80 httpd <br>$ docker service ls</pre><p>Here 8080 is a service port and 80 is a container port .</p><p>Now if the container is deleted then its service will create a new container in the running slave node .</p><p>Also if load increased on our website then we can do horizontal scaling</p><pre>$ docker service scale webserver=5<br>$ docker service ls<br>$ docker service ps webserver</pre><h3>Conclusion</h3><p>In a Docker Swarm cluster, services are designed to be highly available and self-healing. Suppose a container is running on a worker (slave) node, and that node is shut down using init 0. In that case, the Swarm manager automatically detects that the node has become unavailable.</p><p>Once the failure is detected, the manager node takes corrective action based on the desired state defined for the service. It reschedules the affected container (task) and creates a new instance on another active worker node in the cluster. This ensures that the service continues to run without manual intervention.</p><p>This behavior is part of Swarm’s built-in orchestration and fault tolerance mechanism. The manager continuously monitors the cluster state and compares it with the desired state. If any node or container goes down, it immediately works to restore the required number of replicas by deploying containers on healthy nodes.</p><p>In summary, even if a worker node fails or is shut down, Docker Swarm ensures service continuity by automatically redistributing workloads across available nodes in the cluster.</p><p>In the next blog, we will explore more advanced Docker concepts and real-world use cases.</p><p>📅 New blog every Tuesday at 5 PM IST — stay tuned!</p><p><em>If you found this article helpful, please consider sharing it with your network and following me for more content on AWS, DevOps, Cloud Computing, Kubernetes, Docker, and Infrastructure Engineering. 🚀</em></p><p><em>If you have any questions, suggestions, or feedback, feel free to leave a comment below — I’d be happy to help. Also, let me know which topic you’d like me to cover in the next blog, and I’ll do my best to create detailed content around it.</em></p><p><em>Happy Learning! 😊</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f5fa0793379" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/learn-docker-swarm-cluster-management-and-scaling-made-easy-1f5fa0793379">Learn Docker Swarm: Cluster Management and Scaling Made Easy</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building High Availability Architecture with ALB Path-Based Routing on AWS]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.devops.dev/building-high-availability-architecture-with-alb-path-based-routing-on-aws-b37663b4b855?source=rss-552cbb956cd------2"><img src="https://cdn-images-1.medium.com/max/1536/1*hul0VuMjQ5ZjtlAtzV1eWw.png" width="1536"></a></p><p class="medium-feed-snippet">In this blog, we will learn about ALB and configure our search and mail server and achieved path based routing by Application load balancer</p><p class="medium-feed-link"><a href="https://blog.devops.dev/building-high-availability-architecture-with-alb-path-based-routing-on-aws-b37663b4b855?source=rss-552cbb956cd------2">Continue reading on DevOps.dev »</a></p></div>]]></description>
            <link>https://blog.devops.dev/building-high-availability-architecture-with-alb-path-based-routing-on-aws-b37663b4b855?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b37663b4b855</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[application-load-balancer]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 10:31:01 GMT</pubDate>
            <atom:updated>2026-07-09T12:19:17.155Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building a Docker Image using Docker Compose]]></title>
            <link>https://blog.devops.dev/building-a-docker-image-using-docker-compose-72e9f296f1e8?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/72e9f296f1e8</guid>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 10:31:00 GMT</pubDate>
            <atom:updated>2026-07-01T14:55:45.149Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m excited to continue this blog series on containers and Docker! This is the<strong> 8th blog</strong> in the series, where we will dive into <strong>Docker compose and docker images.</strong></p><p>In this blog, we will automate the creation of Docker images using Docker Compose. This approach helps in reducing manual work, improving consistency, and making containerized applications easier to manage and scale.</p><p>Since Docker is a vast topic, this series will continue to explore everything step by step — from basics to more advanced concepts</p><p><strong>Stay tuned </strong>— new blogs in this series will go live every <strong>Tuesday at 4 PM IST.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_40XCG6aQwZKo-CfXgTkg.png" /></figure><h3>========================================</h3><h3>Index Table:- All URL of Docker Blogs Series</h3><h3>========================================</h3><ol><li><a href="https://deepaksharma2007.medium.com/633240b556a4">Introduction to Docker:- Containerization vs Virtualization</a></li><li><a href="https://deepaksharma2007.medium.com/5c56156c1295">Docker Networking</a></li><li><a href="https://deepaksharma2007.medium.com/deploy-a-3-tier-architecture-by-docker-568d81ed287c">Deploy a 3-tier Architecture using Docker</a></li><li><a href="https://deepaksharma2007.medium.com/creating-a-robust-wordpress-and-mysql-architecture-6fea5a6e46df">Creating a Robust WordPress and MySQL Architecture</a></li><li><a href="https://blog.devops.dev/docker-compose-explained-in-the-simplest-way-with-real-example-198341bcfb24">Docker Compose Explained in the Simplest Way (With Real Example)</a></li><li><a href="https://blog.devops.dev/creating-robust-architecture-by-docker-compose-847f1fcea1eb">Creating robust architecture by docker compose</a></li><li><a href="https://blog.devops.dev/mastering-docker-images-commit-vs-dockerfile-a082da531684">Mastering Docker Images: Commit vs Dockerfile</a></li><li><a href="https://medium.com/devops-dev/building-a-docker-image-using-docker-compose-72e9f296f1e8?source=your_stories_outbox---writer_outbox_published">Building a Docker Image using Docker Compose</a></li><li><a href="https://blog.devops.dev/learn-docker-internals-step-by-step-beginner-to-advanced-9aff544bea06">Learn Docker Internals Step by Step (Beginner to Advanced)</a></li><li>Docker Swarm:- Cluster Management and Scaling Made Easy</li><li>Docker Swarm Networking Deep Dive: Overlay Networks, VXLAN</li><li>Docker Stack:- Combination of Docker Compose &amp; Docker Swarm</li><li>Docker Swarm HA Architecture</li><li>Docker inside Docker:- DIND</li><li>Mirantis Kubernetes Engine (MKE): Managing Docker Swarm and Kubernetes from a Single Platform</li></ol><h4>==================================================</h4><p>In the Docker ecosystem, creating images is a fundamental step in building and deploying applications. While most developers use a Dockerfile with the docker build command, there’s another powerful and often overlooked approach—<strong>building images using Docker Compose</strong>.</p><p>Docker Compose is not just limited to running multi-container applications; it can also <strong>build custom images directly from your project configuration</strong>. This makes your workflow more streamlined, especially when managing multiple services, dependencies, and environments in a single place.</p><p>In this blog, we will explore how to <strong>build Docker images using Docker Compose</strong>, making the process more automated and scalable. Instead of handling builds and deployments separately, we will define everything in one configuration file and let Docker Compose handle the rest.</p><p>By the end of this blog, you will understand:</p><ul><li>How to define build configurations in Docker Compose</li><li>How to create and run containers from custom-built images</li><li>Why this approach is useful in real-world DevOps workflows</li></ul><p>Let’s get started 🚀</p><h3>Building a Docker Image Using Docker Compose for a Java WebApp</h3><p>When working with Java-based web applications, Apache Tomcat is one of the most popular choices for an application server. Tomcat runs on port 8080 by default and serves as the container for deploying .war or web applications. In this post, we’ll walk through how to build a custom Docker image for a Java WebApp using Tomcat and then automate its deployment using Docker Compose.</p><p>Let’s first create this maually and later will automate this using Docker compose</p><h4>A. Manual Method</h4><p><strong>1. Running Tomcat in a Docker Container</strong></p><p>We can start a Tomcat server in Docker using the official Tomcat image:</p><pre>$ docker run -it tomcat:9.0</pre><p>If you want it to run in the background, use the detached mode (-d):</p><pre>$ docker run -dit tomcat:9.0</pre><p>By default, Tomcat serves applications on port 8080, which means we can access it using:</p><pre>$ curl [172.17.0.2](http://172.17.0.2:8080)</pre><p><strong>2. Accessing the Tomcat Container</strong></p><p>If you try to log in to this container using docker attach, it won’t work properly. That’s because docker attach only works on containers whose default command is bash.<br>In Tomcat’s case, the default command is catalina.sh, so attach will cause the screen to hang.<br>You can exit with the key combination Ctrl + p, q.</p><p>Instead, use docker exec to open a shell inside the container:</p><pre>$ docker exec -it &lt;container_id&gt; bash<br>$ ps -aux<br>$ cd /usr/local/tomcat/webapps<br>$ cat /usr/local/tomcat/webapps/ROOT/index.html<br>$ curl http://172.17.0.2:8080</pre><p>This confirms that our Tomcat server is up and serving files correctly.</p><p>We can also create custom docker image using Dockerfile</p><pre>FROM tomcat:9.0<br>COPY ./webapp/ /usr/local/tomcat/webapps/ROOT/<br>EXPOSE 8080</pre><p>To build image and launch container</p><pre>$ docker build -t tomcat:v1 .<br>$ docker run -dit tomcat:v1<br>$ docker inspect &lt;container_id&gt;<br>$ curl 172.17.0.2:8080</pre><p>we can see our app.</p><p>Now we will automate both steps by using Docker compose</p><h3>B. Combining Build and Run with Docker Compose</h3><p>Now we will automate both steps by using Docker compose</p><ol><li>Creating Custom image</li><li>Launching Docker container using custom image</li></ol><p>Instead of building and running our image manually, we can automate the entire process using Docker Compose.</p><p>We need docker-compose.yml file</p><pre>version: &#39;3&#39;<br>services:<br>  webapp:<br>    build: .<br>    ports:<br>      - &quot;8081:8080&quot;</pre><p>This will create custom image and launch container using that custom docker image.</p><p><strong>Explanation</strong></p><ul><li>version: &#39;3&#39;<br>Specifies the Docker Compose file format version being used.</li><li>services:<br>Defines the list of containers/services that Docker Compose will manage.</li><li>webapp:<br>Name of the service/container.</li><li>build: .<br>Tells Docker Compose to build the Docker image using the Dockerfile present in the current directory (.).</li><li>ports:<br>Used to map ports between the host machine and the container.</li></ul><p>Now, you can build and launch your application in one go:</p><pre>$ docker-compose up -d</pre><p>This means the application running inside the container on port 8080 can be accessed from the browser using:</p><pre>http://localhost:8081</pre><p>Docker Compose will handle image building and container startup automatically.</p><p>If you update your application content, you’ll need to rebuild and restart your containers:</p><pre>$ docker-compose down<br>$ docker-compose up -d</pre><p>To list running services:</p><pre>$ docker-compose ps</pre><p>This approach saves time by integrating image build and container launch in a single workflow.</p><h4>Exposing and Publishing Ports</h4><p>By default, Docker containers run in isolation. To make your application accessible externally, you’ll need to expose and map ports.</p><p>To expose a port inside your image:</p><pre>EXPOSE 8080</pre><p>To map it while running the container:</p><pre>$ docker run -dit -p 8080:80 myimage:v1</pre><p>or let Docker assign a random port automatically:</p><pre>$ docker run -dit -P myimage:v1</pre><p>We can also define environment variables using the ENV keyword in our Dockerfile.</p><h4>Final Code :- <a href="https://github.com/deepaksharma2007/Docker-Compose-Dockerfile">https://github.com/deepaksharma2007/Docker-Compose-Dockerfile</a></h4><h3>Conclusion</h3><p>In this blog, we learned how a simple Docker Compose file can help us build and run an application with very minimal effort. Instead of manually building images and running containers, Docker Compose allows us to define everything in one place and execute it with a single command.</p><p>We understood how:</p><ul><li>build helps in creating an image from a Dockerfile</li><li>services define our application containers</li><li>ports allow us to access the application from outside</li></ul><p>The key takeaway is that Docker Compose makes application deployment <strong>easy, fast, and organized</strong>, especially when working with containerized environments.</p><p>In the next blog, we will explore more advanced Docker concepts and real-world use cases.</p><p>📅 New blog every Tuesday at 5 PM IST — stay tuned!</p><p><em>If you found this article helpful, please consider sharing it with your network and following me for more content on AWS, DevOps, Cloud Computing, Kubernetes, Docker, and Infrastructure Engineering. 🚀</em></p><p><em>If you have any questions, suggestions, or feedback, feel free to leave a comment below — I’d be happy to help. Also, let me know which topic you’d like me to cover in the next blog, and I’ll do my best to create detailed content around it.</em></p><p><em>Happy Learning! 😊</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72e9f296f1e8" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/building-a-docker-image-using-docker-compose-72e9f296f1e8">Building a Docker Image using Docker Compose</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Docker Internals Step by Step (Beginner to Advanced)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.devops.dev/learn-docker-internals-step-by-step-beginner-to-advanced-9aff544bea06?source=rss-552cbb956cd------2"><img src="https://cdn-images-1.medium.com/max/1536/1*Ol0OPvWbXQ4jSYOm1MsVtA.png" width="1536"></a></p><p class="medium-feed-snippet">I&#x2019;m excited to continue this blog series on containers and Docker! This is the 9th blog in the series, where we will dive into Docker&#x2026;</p><p class="medium-feed-link"><a href="https://blog.devops.dev/learn-docker-internals-step-by-step-beginner-to-advanced-9aff544bea06?source=rss-552cbb956cd------2">Continue reading on DevOps.dev »</a></p></div>]]></description>
            <link>https://blog.devops.dev/learn-docker-internals-step-by-step-beginner-to-advanced-9aff544bea06?source=rss-552cbb956cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9aff544bea06</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[linux-namespace]]></category>
            <dc:creator><![CDATA[Deepak Sharma]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 10:31:00 GMT</pubDate>
            <atom:updated>2026-07-01T14:56:12.694Z</atom:updated>
        </item>
    </channel>
</rss>