<?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 Farhim Ferdous on Medium]]></title>
        <description><![CDATA[Stories by Farhim Ferdous on Medium]]></description>
        <link>https://medium.com/@farhim.ferdous?source=rss-d437c4338d15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ok98HKIjkv3e1UhpkyECqA.png</url>
            <title>Stories by Farhim Ferdous on Medium</title>
            <link>https://medium.com/@farhim.ferdous?source=rss-d437c4338d15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:20:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@farhim.ferdous/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[What is a Server?]]></title>
            <link>https://medium.com/techmormo/what-is-a-server-1f8591ffd1a1?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f8591ffd1a1</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 13:59:31 GMT</pubDate>
            <atom:updated>2023-01-24T13:59:31.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cAqLhKWeN6QKq012xR1uQg.png" /></figure><h4>Servers 101: Understanding What It Is, Why It Matters &amp; More</h4><p>Originally published <a href="https://techmormo.com/posts/what-is-a-server/">here</a>.</p><p>How are you able to access any website on the Internet? What is the backbone of modern networks that Businesses and Governments rely upon?</p><p>Yes, Servers.</p><p>But what exactly are they and how do they work?</p><p>Keep reading to find out!</p><h3>Introduction</h3><p>In this blog, we will learn all about Servers including:</p><ul><li>What is a Server?</li><li>Why should we learn about Servers?</li><li>Why do they exist?</li><li>Server Computers VS Desktop Computers</li><li>How do they work?</li><li>Types of Servers</li></ul><p>Let’s begin by answering…</p><h3>What is a Server?</h3><blockquote><em>A Server is a computer program that provides some resources or functionality to other computer programs.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ePtOJeXu_cYW9D6G.png" /></figure><p>As a figure of speech, the computers running the server programs are often also referred to as servers. Although that’s technically incorrect.</p><h3>Why should we learn about Servers?</h3><p>Servers play a vital role in the information age of today. The following are the main benefits of learning about Servers:</p><ol><li><strong>HIGH PAYING Jobs</strong>: Understanding servers and how they work can open up job opportunities in IT, especially DevOps that pay top dollar!</li><li><strong>Cloud Computing</strong>: Due to the enormous business value, many companies are moving their data and applications to remote servers offered by AWS, Azure, GCP, etc. A key part of Cloud Computing is — <em>Servers</em>. Thus, mastering them can be a valuable skill for anyone interested in working in the technology industry.</li><li><strong>Security</strong>: Servers are often the target of cyber attacks, so understanding how to secure them and protect against potential threats is essential.</li><li><strong>Improved performance</strong>: By understanding how servers work and how to manage them, you can optimize performance and speed up your website, application, or service.</li><li><strong>Cost-effectiveness</strong>: By understanding servers, you can make better-informed decisions about the hardware and software you use, which can help lower costs.</li><li><strong>Automation</strong>: Many server management tasks are repetitive and toilsome. Automating tasks such as configuration and deployment can save time and reduce human error.</li><li><strong>Scalability</strong>: Knowing how to set up and manage servers allows you to easily scale your infrastructure to meet the needs of a growing user base.</li></ol><p>Yes, learning about servers is surely advantageous.</p><p>But, you may ask…</p><h3>Why do Servers exist?</h3><p>Servers exist to provide a centralized location for storing, managing, and distributing resources and information.</p><p>The origins of servers can be traced back to the 1960s when mainframe computers were used by large organizations to store and manage data. These early servers were large and expensive, and were primarily used by government agencies and large corporations.</p><p>As technology advanced, servers became smaller, more powerful, and more affordable. This led to the widespread adoption of servers in various industries, including business, education, healthcare, and government.</p><p>Today, servers form the foundation of modern networks like the Internet, enabling the ability to connect with people and resources worldwide. There is no doubt they play a crucial role in the functioning of businesses, and industries of all kinds. Without servers, the efficient and effective functioning of these systems would not be possible.</p><h3>Server Computers VS Desktop Computers</h3><p>Server computers are quite different from desktop computers that we usually use at home or work. Although both types share similarities, they have major differences in terms of their design, capabilities, and intended use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OP7MTevPv-e2BWa4.png" /></figure><p><strong>Server computers</strong> are generally packed in data centers for heat and efficiency. They are often <a href="https://techmormo.com/posts/what-is-virtualization/">virtualized</a> to handle the shared needs of multiple users and projects. These machines are designed to handle heavy workloads and large amounts of requests and data. They typically have high-performance specifications and are built to run 24/7, ensuring high availability and fault-tolerance. Additionally, servers often have redundancy built in, ensuring that if one component fails, another can take its place, minimizing downtime and disruption to users.</p><p><strong>Desktop computers</strong>, on the other hand, are designed for personal use by a single user and are typically used for tasks such as word processing, internet browsing, gaming, etc. These computers are not built to handle heavy workloads and data like servers computers. Instead, they are intended for more basic, everyday use and are usually only needed for a few hours a day. They come in a variety of forms and specifications, and can be customized to fit a user’s specific needs and preferences.</p><p>Ok, so…</p><h3>How do Servers Work?</h3><p>Servers work by running specialized software programs that allow them to handle multiple requests simultaneously.</p><p>‘Servers’ are devices or programs that store and distribute resources. ‘Clients’ are Devices or programs that consume those resources by requesting the servers. Together, this architecture is called the ‘<strong>Client-Server Model</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2IjdLj1Nfvo0Y3zU.png" /></figure><p>When a client requests some information or resources from a server, the server processes the request and sends the information or resources back to the client. This forms the ‘<strong>Request-Response Cycle</strong>’.</p><p>Take for example Google Search. When you search for something on Google, your browser as the ‘client’ sends a ‘request’ to Google. When a <strong>server</strong> from Google gets the request over the Internet, it performs its logic/function and sends your browser a ‘response’, which you see as search results.</p><h3>Types of Servers</h3><p>There are numerous types of servers, each with a specific purpose. Some of the most common types include:</p><ul><li><strong>Web servers</strong>: These servers distribute web pages and documents that are typically consumed by web browsers. Example: Apache, Nginx.</li><li><strong>Database servers</strong>: These servers store and manage large amounts of data, such as online transactions, inventory, customer information, etc. Example: MySQL, MongoDB.</li><li><strong>File servers</strong>: These servers store and manage files, such as documents, images, and videos. Example: FileZilla.</li><li><strong>Mail servers</strong>: These servers manage and distribute email messages.</li><li><strong>Print servers</strong>: These servers manage and distribute print jobs to connected printers.</li></ul><p>And countless other types.</p><p>You are probably interacting with a server right now!</p><h3>Conclusion</h3><p>Servers have come a long way since the 1960s and have become an essential component of modern networks. Learning about servers can open up job opportunities in fields such as IT and DevOps. It is also becoming increasingly important for businesses and organizations of all sizes.</p><p>If you’re interested in delving deeper into the world of servers and Cloud Computing, be sure to subscribe to the TechMormo Newsletter for more valuable DevOps content.</p><p>Thanks for making it so far!</p><p>We have a LOT more exciting DevOps content on the way! 🙌</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><p>Subscribe to <a href="https://techmormo.com/newsletter/">TechMormo Newsletter</a> for cutting-edge DevOps content! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f8591ffd1a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/what-is-a-server-1f8591ffd1a1">What is a Server?</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is DevOps?]]></title>
            <link>https://medium.com/techmormo/what-is-devops-d6ba69622522?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6ba69622522</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 13:35:50 GMT</pubDate>
            <atom:updated>2023-01-24T13:46:03.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRSEs6ZxLBdzrKvMdnZlow.png" /></figure><h4>Really understand what DevOps is and the massive opportunities it offers!</h4><p>Originally published <a href="https://techmormo.com/posts/what-is-devops/">here</a>.</p><p>What the heck is DevOps?</p><p>And why is the demand for DevOps Engineers growing even faster than for Machine Learning or Data Science jobs?</p><p>Keep reading to find out…</p><h3>Introduction</h3><p>Here’s the agenda for this tutorial:</p><ul><li>What is DevOps?</li><li>Common DevOps Practices</li><li>Core DevOps Technologies</li><li>Why learn DevOps?</li><li>“Do I HAVE to be a ‘DevOps Engineer’?”</li><li>The Challenges in learning DevOps</li><li>How TechMormo can help master DevOps</li></ul><p>Ok, let’s first answer…</p><h3>What is DevOps?</h3><blockquote>DevOps is a concept aimed to deliver better software faster by uniting Software Development (Dev) and Operations (Ops).</blockquote><p>The Dev team is responsible for product development, whereas the Ops is responsible for running systems smoothly.</p><p>Traditionally these teams have worked separately with conflicting interests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7ktIlAJ2J2KLtlwg.png" /></figure><p>The Dev team wants to move fast, release new features, and fix bugs.</p><p>The Ops team, on the other hand, wants to move slowly and reduce changes to keep things stable.</p><p>This conflict of interests used to cause a great deal of tension within organizations, negatively impacting the product.</p><p>DevOps breaks down the proverbial walls within organizations so that teams can communicate and collaborate better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t-2noFnRk-1CrwSB.png" /></figure><p>By embracing a set of practices, tools, and cultural changes, DevOps provides faster releases, faster feedback from customers, and ultimately better software.</p><h3>DevOps Practices</h3><p>DevOps is a broad and abstract topic. Different companies implement it differently.</p><p>But most teams that embrace DevOps usually have a few practices in common:</p><h3>1) Break down organizational silos to empower cross-functional teams</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vpOmVNo9a31Y8jfq.png" /></figure><p>This enables better communication and collaboration between teams in an organization. It also promotes self-sufficiency enabling teams to develop and deploy their products/services independently. Ultimately, the organization gains unrivaled agility.</p><h3>2) Release short and incremental changes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WnCb__hObLSzu92A.png" /></figure><p>Inspired by Agile methods, this practice is key to being quick in an ever-changing industry. Short, incremental changes are faster to develop, review and ship. It also helps to resolve sudden incidents faster when deploying a small change, as opposed to when deploying 10,000 lines of code and multiple breaking changes.</p><h3>3) Adopt microservice architectures</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I7eGq5ml2JbT9LSt.png" /></figure><p>When you have multiple teams able to own the entire lifecycle of their projects, you naturally get many small loosely-coupled services talking to each other ie. microservices. Although, this is not a necessity, esp. for small companies that can benefit from the simplicity of Monolithic architectures. But when growing or scaling, microservices can help significantly.</p><h3>4) Version control everything</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aD_E5fHUecWJAjfy.png" /></figure><p>DevOps Teams often apply version control to many different assets. From design and architectural assets, infrastructure, configuration, and of course — source code. Version control has a very useful property — it creates an immutable view of the history of changes. This enables a team to refer to exact changes made, as well as to roll back easily.</p><h3>5) Automate everything</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WzeHPve6x8tdQoWR.png" /></figure><p>By leveraging tools and technologies, DevOps fosters a culture of automation. Tasks that are repeated often, are manual, or are toilsome are usually primary targets of automation. Why automate? It lowers costs, significantly improves speed and throughput, reduces bugs + human error, and lets team members focus on high-value tasks.</p><h3>DevOps Technologies</h3><p>By incorporating DevOps practices, a set of tools and technologies emerged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fyvBX3pag2kiMne3.png" /></figure><p>The following are the <em>core segments of DevOps Technologies</em>:</p><ul><li><strong>Scripting languages</strong> (eg. Python, Shell Script, Ruby)</li><li><strong>Version control system</strong> (eg. Git, SVN)</li><li><strong>OS &amp; Linux basics</strong> (terminal usage, mgmt. of processes, memory, storage, etc.)</li><li><strong>Networking &amp; Security basics</strong> (IP, Firewalls, DNS, HTTPS, LBs, etc.)</li><li><strong>Containerization</strong> (eg. Docker, Kubernetes, etc.)</li><li><strong>(CI/CD)</strong> <strong>Continuous Integration / Continuous Delivery</strong> (eg. Jenkins, Gitlab-ci, etc.)</li><li><strong>Cloud Computing</strong> (eg. AWS, Azure, GCP, etc.)</li><li><strong>(IaC) Infrastructure as Code</strong> (eg. Ansible, Terraform, etc.)</li><li><strong>Monitoring &amp; Observability</strong> (eg. Elastic Stack, Prometheus, Grafana, etc.)</li></ul><p>NOTE: this is neither a fixed nor a comprehensive list. As DevOps practices evolve, so will the technologies associated with them.</p><p>Now, learning all these technologies might seem daunting.</p><p>Or exciting.</p><p>Or both.</p><p>Whatever your response is, you might naturally ask…</p><h3>Why learn DevOps?</h3><p>Below are the top 3 reasons we love DevOps!</p><h3>1) Massive learning opportunity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-7dqdry6URqiv--L.png" /></figure><p>DevOps touches a lot of roles and domains, not just Dev and Ops. This means a DevOps Engineer has to learn continuously, enabling the opportunity to build a diverse skill set.</p><p>Depending on the company, this can include elements of Design, Development, Operations, Testing, Management, etc.</p><p>It sounds fantastic if you love to learn, but scary if you’re not into learning.</p><p>In the coming days of Automation &amp; AI, if you don’t develop a love for learning, you might be in trouble.</p><p>Remember, learning is investing in yourself.</p><p>As Warren Buffet puts it -</p><blockquote><em>“The best investment you can make is in yourself… The more you learn, the more you’ll earn.”</em></blockquote><h3>2) High-impact role</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JNTDvNTVqxTqPSPf.png" /></figure><p>As a DevOps Engineer, you can move (technological) mountains.</p><p>Is this a joke?</p><p>Nope.</p><p>Imagine commanding hundreds of servers at your will, automating manual-repetitive tasks, designing microservices, and having ownership of the entire SDLC.</p><p>Your actions will have a direct impact on the business, including how quickly the product can be released, how smoothly your team members can work, etc.</p><p>In other words, you will have a highly leveraged role.</p><p>Sounds exciting, right?!</p><p>Remember, with great power, comes great responsibility.</p><p>And big money too! 💸</p><h3>3) High salary &amp; exploding demand</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ON7ib-Tpq15hZJbU.png" /></figure><p>Companies realize the huge benefits of implementing DevOps. That’s why they are willing to pay top dollar for DevOps Engineers.</p><p>For example, an average AWS Solutions Architect makes over $150k/year in the US, according to Glassdoor.</p><p>What’s more, the demand is exploding!</p><p>In 2021, Bain &amp; Company <a href="https://www.bain.com/insights/tech-talent-war-tech-report-2021/">reported</a> a growth of 443% increase in DevOps job postings from 2015 to 2019. This growth is even higher than postings for Machine Learning (417%), Data Science (167%), or Software Engineering (69%).</p><p>Additionally, most Engineers are not competent in DevOps, resulting in low supply and low competition.</p><p>This is YOUR opportunity!</p><p>You won’t have a hard time finding jobs with DevOps skills.</p><p>You want to tap into this huge salary growth. But you think to yourself…</p><h3>Do I HAVE to be a ‘DevOps Engineer’?</h3><p>Absolutely not.</p><p>Any IT Professional can start learning DevOps, make an impact, and position themselves to be able to earn more.</p><p>The shortage of DevOps Engineers means many companies don’t even have a dedicated role for “DevOps”. Instead, existing Software Engineers or System Administrators are usually trained in DevOps skills.</p><p>But, most Engineers don’t become competent in DevOps due to…</p><h3>The Challenges in learning DevOps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uQvb3TWbP6XyCk8N.png" /></figure><p>Learning DevOps is often overwhelming, whether you’re about to start or already a practitioner.</p><ul><li><strong>DevOps is complex</strong>: There are a lot of things to learn. Additionally, it is continuously evolving as new technologies come out every day.</li><li><strong>Lack of guidance</strong>: Due to the complexity and unique backgrounds of individuals, it is difficult to figure out an effective path to DevOps mastery.</li><li><strong>Most resources are just theory</strong>: Tired of theory lectures and PowerPoint slides that offer no practical value? We are too.</li><li><strong>Live classrooms don’t take your pace into account</strong>: Ever been stuck in a class that goes too fast or too slow? This often happens for live DevOps training because not everyone learns at the same pace.</li></ul><p>How do you master DevOps effectively then?</p><h3>How TechMormo helps you master DevOps?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ly5Iq5fsDibzEuoU.png" /></figure><p>At TechMormo, our goal is to help you master DevOps.</p><ul><li><strong>Simplicity</strong>: we are obsessed with simplifying complex topics to help you become a better DevOps Engineer. We craft lectures with easy-to-understand animations and visuals.</li><li><strong>Do projects, start to finish</strong>: Learn how to create and scale projects from start to finish, step-by-step. Whether you’re just starting out or are already a practitioner, you will find value in our content.</li><li><strong>Hands-on practical skills</strong>: Don’t just digest Theory. Learn hands-on practical skills that you can implement in your job TODAY.</li><li><strong>Learn at your own pace</strong>: Stuck in a class that’s too slow or too fast? We create on-demand learning resources that you can use anytime, anywhere.</li></ul><p>So, what are you waiting for?</p><p>Subscribe to the <a href="https://techmormo.com/newsletter/">TechMormo Newsletter</a> to get notified of new cutting-edge DevOps content.</p><p>Learn DevOps, stand apart, and reap the rewards! 🏆</p><h3>Conclusion</h3><p>In this tutorial, we learnt what DevOps is including its core practices and technologies.</p><p>We also discussed why learning DevOps is beneficial, what the challenges are in learning, and how TechMormo can help in your DevOps journey.</p><p>DevOps is continuously evolving. The practices and technologies are likely to change over time. But what’s important is to understand its core purpose: “deliver better software faster”.</p><p>Thanks for making it so far!</p><p>We have a LOT more exciting DevOps content on the way! 🙌</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><p>Subscribe to <a href="https://techmormo.com/newsletter/">TechMormo Newsletter</a> for cutting-edge DevOps content! 🚀</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcHxMaoe8DL0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcHxMaoe8DL0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcHxMaoe8DL0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7766d1596249e45b5c6ba84d2f82d27/href">https://medium.com/media/d7766d1596249e45b5c6ba84d2f82d27/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6ba69622522" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/what-is-devops-d6ba69622522">What is DevOps?</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ভার্চুয়ালাইজেশন কি? (Virtualization) | ডকার কন্টেইনার vs ভার্চুয়াল মেশিন]]></title>
            <link>https://medium.com/techmormo/%E0%A6%AD%E0%A6%BE%E0%A6%B0%E0%A7%8D%E0%A6%9A%E0%A7%81%E0%A6%AF%E0%A6%BC%E0%A6%BE%E0%A6%B2%E0%A6%BE%E0%A6%87%E0%A6%9C%E0%A7%87%E0%A6%B6%E0%A6%A8-%E0%A6%95%E0%A6%BF-virtualization-%E0%A6%A1%E0%A6%95%E0%A6%BE%E0%A6%B0-%E0%A6%95%E0%A6%A8%E0%A7%8D%E0%A6%9F%E0%A7%87%E0%A6%87%E0%A6%A8%E0%A6%BE%E0%A6%B0-vs-%E0%A6%AD%E0%A6%BE%E0%A6%B0%E0%A7%8D%E0%A6%9A%E0%A7%81%E0%A6%AF%E0%A6%BC%E0%A6%BE%E0%A6%B2-%E0%A6%AE%E0%A7%87%E0%A6%B6%E0%A6%BF%E0%A6%A8-e0a0299b89ec?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0a0299b89ec</guid>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 13:28:55 GMT</pubDate>
            <atom:updated>2023-01-24T13:53:58.513Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oo-DJjEBfxsn1h_14eQGA.png" /></figure><h4>ভার্চুয়ালাইজেশনের সহজ বর্ণনা । কন্টেইনার এবং ভার্চুয়াল মেশিন (VM) এর মধ্যে তুলনা</h4><p>Originally posted <a href="https://techmormo.com/posts/bangla-what-is-virtualization/">here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FK2pBaJeFD7E%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DK2pBaJeFD7E&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FK2pBaJeFD7E%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a4bb9283d5847f62a134e2b796b5722/href">https://medium.com/media/6a4bb9283d5847f62a134e2b796b5722/href</a></iframe><blockquote><em>ক্লাউড কম্পিউটিং! ডকার! কুবারনেটস! Serverless!…</em></blockquote><p>একজন সফটওয়্যার ইঞ্জিনিয়ার হিসাবে এই সকল শব্দ যদি আপনি না শুনে থাকেন তাহলে আপনি সম্ভবত কোন পাথরের নিচে বসবাস করছেন।</p><p>কিন্তু এই সব প্রযুক্তির মধ্যে কোন জিনিসটা কমন আছে?</p><p>ভার্চুয়ালাইজেশন!!!</p><p>কিন্তু সেটা আসলে কি? এবং এটার সাথে ডকার কন্টেইনার বা ভার্চুয়াল মেশিন এর কি সম্পর্ক?</p><p>এই টিউটোরিয়ালটিতে যতটা সম্ভব সহজভাবে আমরা এগুলো বোঝার চেষ্টা করবো।</p><p>আমরা একটা উদাহরণ দিয়ে এটা বোঝার চেষ্টা করি।</p><h3>উদাহরণ — কি সমস্যার সমাধান দরকার?</h3><p>ধরুন একটি কাল্পনিক কোম্পানি ‘XYZ’ এর দুটো সফটওয়্যার অ্যাপ্লিকেশান চালাতে হবে: App A ও App B। এখন কোন কারনে একটা অ্যাপ অন্যটার সাথে মানানসই (compatible) নয়।</p><p>ধরেন অ্যাপ এ হচ্ছে একটা পাইথন অ্যাপ যেটা লিনাক্সে চালাতে হবে। এবং অন্যটা হচ্ছে একটা C# Dot Net অ্যাপ যেটা Windows এ চালাতে হবে।</p><p>দুটো অ্যাপের অপারেটিং সিস্টেম এবং লাইব্রেরি dependency গুলো আলাদা।</p><p>এখন কোম্পানি ‘XYZ’ কি কড়তে পারে?</p><p>যদি ভার্চুয়ালাইজেশন বলতে কিছু না থাকে, তখন স্বাভাবিকভাবে কোম্পানি ‘XYZ’ দুটো কম্পিউটার কিনে আনবে। তারপর দুটো অ্যাপ দুই কম্পিউটার এ সেটআপ করে চালাবে।</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/0*RFT9Q2nEexssrXtF.png" /></figure><p>চালানর পর হইলো কাহিনী।</p><p>লক্ষ্য করুন যে, অ্যাপ A ব্যবহার করছে প্রথম মেশিনের ৩০%, আর অ্যাপ B দ্বিতীয় মেশিনের ৪০%।</p><p>আমরা খুব সহজেই এই পদ্ধতির অসুবিধা দেখতে পাই:</p><ul><li>প্রতিটি অ্যাপই তার কম্পিউটার পুরোপুরি ব্যবহার করছে না — resource অপচয়</li><li>অ্যাপ এর resource (CPU/Ram, etc) কত লাগবে তা অনুমান করা কঠিন — হয় বেশি বা কম অনুমান করা হবে</li><li>প্রতিটি নতুন অ্যাপ্লিকেশনের জন্য অতিরিক্ত হার্ডওয়্যার কিনতে হবে — ব্যয়বহুল</li><li>নিরাপত্তা ও ম্যানেজমেন্ট প্রতিটি সিস্টেমের জন্য আলাদাভাবে কড়তে হবে — ম্যানেজ করার পেড়া</li></ul><p>এই সমস্যাগুলার যদি কোন সমাধান না থাকতো, তাহলে এগুলো খুব একটা বড় বিষয় মনে হত না।</p><p>সৌভাগ্যবশত, আমাদের কাছে এই সমস্যাগুলার সমাধান আছে — এবং এটিকে বলা হয়…</p><p>ভার্চুয়ালাইজেশন।</p><h3>ভার্চুয়ালাইজেশন এর সংজ্ঞা (Definition)</h3><blockquote><em>ভার্চুয়ালাইজেশন হল সেই প্রযুক্তি যা দিয়ে আমরা একটা physical resource কে ভাগ করে একাধিক virtual resource এ পরিণত করতে পারি।</em></blockquote><p>যেমন, আমরা একটা কম্পিউটারের হার্ডওয়্যার অংশগুলো — যেমন CPU, RAM, Storage, ইত্যাদি এগুলো ভাগ করে অনেকগুলো ভার্চুয়াল ছোট কম্পিউটার বানাতে পারি।</p><p>এটা কি কোন গাজাখরি গল্প বললাম?</p><p>মোটেও না।</p><p>আপনি যদি ভার্চুয়াল মেশিন বা ডকার কন্টেইনার ব্যবহার করে থাকেন, তাহলে এটার ব্যাপারে আপনার ইতিমধ্যে কিছুটা জানার কথা।</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/0*5S4e8KvZVLhsW4Iy.png" /></figure><p>ভার্চুয়ালাইজেশনের সাহায্যে, একটি ফিজিক্যাল মেশিনকে কয়েকটি ছোট ভাগে ভাগ করা যায়। প্রত্যেকটি ছোট ভাগ নিজেকে মনে করে সে একজন রিয়েল ফিজিক্যাল মেশিন। কিন্তু সে আসলে জানেনা সে স্বপ্নের ভিতরে — তাই তাকে “ভার্চুয়াল” বলা হয়।</p><p>ভার্চুয়াল এনভায়রনমেন্টের ভেতরে যেই অ্যাপগুল চলবে, সেই অ্যাপগুলোর শুধু তার ভার্চুয়াল এনভায়রনমেন্টের নির্ধারিত resource এর অ্যাক্সেস থাকবে।</p><p>যদি অ্যাপ A ও অ্যাপ B চালানর পর মেশিনর আরো অতিরিক্ত resource থাকে, তাহলে কোম্পানি XYZ চাইলে আরো একটা অ্যাপ হয়তো চালাতে পারে। (যদিও দীর্ঘ সময়ের জন্য কোন কম্পিউটার ফুল লোডে ব্যবহার করা বুদ্ধিমানের কাজ হবে না)</p><p>ভার্চুয়ালাইজেশন থাকায় কি লাভ হোল?</p><h4>ভার্চুয়ালাইজেশন এর উপকারিতা (Benefits)</h4><ol><li><strong>হার্ডওয়্যারের খরচ সঞ্চয়</strong>: একটা মেশিনর physical resource গুলো (CPU, RAM, etc.) আরো দক্ষতার সাথে ব্যবহার করে আমরা হার্ডওয়্যার খরচ কমাতে পেরেছি। এতেকরে একটি মেশিনে একাধিক প্রোজেক্ট বা এনভায়রনমেন্ট চালানো যাবে।</li><li><strong>অ্যাপ্লিকেশন বিচ্ছিন্নতা (isolation)</strong>: যেহেতু প্রতিটি ভার্চুয়াল এনভায়রনমেন্ট একটি ছোট ‘রিয়েল’ মেশিনের মত ভান করে, এতেকরে এক ভার্চুয়াল এনভায়রনমেন্টের অ্যাপগুলো অন্য ভার্চুয়াল এনভায়রনমেন্টের অ্যাপের কোন প্রবাভ ফেলে না। তাই, আমরা সহজেই প্রতিটি অ্যাপ আলাদাভাবে develop ও deploy কড়তে পারি।</li><li><strong>আর ভালো </strong><a href="https://en.wikipedia.org/wiki/Scalability"><strong>scalability</strong></a><strong> ও </strong><a href="https://en.wikipedia.org/wiki/High_availability_software"><strong>availability</strong></a>: নতুন হার্ডওয়্যার কেনার থেকে ভার্চুয়াল এনভায়রনমেন্ট তৈরি করা বা রিমুভ করা আরো সহজ এবং দ্রুত। ভার্চুয়ালাইজেশনের মাধ্যমে আমাদের অ্যাপগুলো আমরা আরো সহজে scale কড়তে পারব — অর্থাৎ, নতুন মেশিন এড বা রিমুভ করা। আর, অ্যাপের একাধিক কপি চালিয়ে আমরা availability বৃদ্ধি কড়তে পারবো — অর্থাৎ, অ্যাপটা যে চলছে সেটার সম্ভাবনা বাড়াতে পারবো।</li><li><strong>আরও সহজ ম্যানেজমেন্ট ও নিরাপত্তা</strong>: যেহেতু অ্যাপ্লিকেশনগুলো তাদের ব্যবহার করা ফিসিকাল মেশিনগুলোর থেকে বিচ্ছিন্ন (ভার্চুয়ালাইজেশনের দ্বারা), তাই ফিসিকাল মেশিনগুলোকে কেন্দ্রীয়ভাবে পরিচালিত করা যেতে পারে এবং নিরাপত্তা নীতিগুলি (security policies) কেন্দ্রীয়ভাবে প্রয়োগ করা যেতে পারে। একশটা মেশিনে ঢুকে প্রত্যেকটা আপডেট করা, নাকি এক জায়গা থেকে একশোটা মেশিন আপডেট করা — কোনটা বেছে নিবেন?</li></ol><h4>ভার্চুয়ালাইজেশনের প্রকারভেদ (Types)</h4><p>ভার্চুয়ালাইজেশনের বিভিন্ন প্রকার রয়েছে, যেমন:</p><ul><li>হার্ডওয়্যার (Hardware) ভার্চুয়ালাইজেশন — ভিএম (VM)</li><li>অপারেটিং সিস্টেম (OS) ভার্চুয়ালাইজেশন — কন্টেইনার (Containers)</li><li>নেটওয়ার্ক (Network) ভার্চুয়ালাইজেশন</li><li>ডেটা (Data) ভার্চুয়ালাইজেশন</li></ul><p>ইত্যাদি।</p><p>কিন্তু আমরা শুধুমাত্র প্রথম দুইটিতে ফোকাস করবো এখন।</p><h3>তুলনা: কন্টেইনার, ভার্চুয়াল মেশিন ও বেয়ার মেটাল</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1auGBA0LVCv_j-Kx.png" /></figure><h3>বেয়ার মেটাল (Bare metal)</h3><p>এটি প্রথম পদ্ধতি যা কোম্পানি XYZ নিয়েছে।</p><p>কম্পিউটার আসার পর প্রথম প্রথম একটি অ্যাপ্লিকেশন চালানোর উপায় ছিল সরাসরি ডেডিকেটেড হার্ডওয়্যারের উপর। অর্থাৎ — একটি মেশিন, একটি অপারেটিং সিস্টেম (OS), একটি অ্যাপ।</p><p>বেয়ার-মেটালের সবচেয়ে বড় সুবিধা হল, হোস্ট, লাইব্রেরি এবং অ্যাপের মধ্যে ভার্চুয়ালাইজেশন লেয়ার না থাকায় এটি সেরা পারফরম্যান্স দেয়। যদিও ভার্চুয়ালাইজেশনের পেনাল্টি সাধারণত বেশিরভাগ ক্ষেত্রে খুব গুরুতর নয়।</p><p>যখন কেউ কাজ করার জন্য একটি কোম্পানির আইটি স্ট্যাক বেছে নিতো, তখন তারা সাধারণত সেই কোম্পানির নির্দিষ্ট হার্ডওয়্যার, ওএস বা লাইসেন্স চুক্তিতে লক-ইন হয়ে জেত। এতে করে — একক মেশিনে একাধিক অ্যাপ্লিকেশন চালানো খুব কঠিন হত।</p><p>ফলে, কম্পিউটারগুলোর resources অপচয় হতো, বিভিন্ন টিমের/অ্যাপের জন্য নতুন এনভায়রনমেন্ট সহজে বানানো জেত না, এবং scale করা কঠিন ছিল, কারণ প্রতিটা নতুন অ্যাপের জন্য নতুন মেশিন কেনাটা ব্যয়বহুল।</p><p>সমাধান কি তাহলে?</p><h3>ভার্চুয়াল মেশিন (VM)</h3><p>১৯৯০ এর দশকে ভার্চুয়াল মেশিনের ব্যবহার বৃদ্ধি পেয়ে ভার্চুয়ালাইজেশন ব্যাপক আকারে ছড়িয়ে পড়লো।</p><p>ভার্চুয়াল মেশিন বানানোর মুল প্রযুক্তি হোল হাইপারভাইজার (hypervisor)।</p><p>একটি হাইপারভাইজার হল এমন একটি সফ্টওয়্যার যা কম্পিউটার হার্ডওয়্যারের একটি নির্দিষ্ট অংশ বা সম্পূর্ণ কম্পিউটারকে অনুকরণ (emulation) করে। এতে করে ফিসিকাল কম্পিউটারটাকে ভাগ করে একাধিক ভার্চুয়াল কম্পিউটার বানানো জায় — যেগুলোকে ভার্চুয়াল মেশিন বলা হয়।</p><p>যে কম্পিউটারটি হাইপারভাইজার চালায় তাকে হোস্ট (host) সিস্টেম বলা হয়, এবং হাইপারভাইজার দ্বারা তৈরি ও পরিচালিত ভিএমগুলিকে গেস্ট (guest) সিস্টেম বলা হয়।</p><p>হাইপারভাইজাররা সরাসরি হার্ডওয়্যারের উপরে (টাইপ-1) অথবা একটি ওএসের উপরে (টাইপ-2) বসতে পারে।</p><p>ভার্চুয়াল মেশিন দারুণ এক প্রযুক্তি, কারণ তা দিয়ে আমরা বেয়ার মেটালের অনেক সমস্যার সমাধান করেছি।</p><p>কিন্তু ভার্চুয়াল মেশিনেরও কিছু ত্রুটি রয়েছে।</p><p>যেমন, প্রতিটি ভিএম একটি সম্পূর্ণ অপারেটিং সিস্টেম এবং এর প্রয়োজনীয় হার্ডওয়্যার ভার্চুয়ালাইজ করে। এটা কিছু ক্ষেত্রে আসলেই কার্যকর, যেমন জখন আমরা সুরক্ষার জন্য উচ্চ বিচ্ছিন্নতা (isloation) চাই।</p><p>তবে অনেক ক্ষেত্রেই তা অপ্রয়োজনীয়।</p><p>ভিএম থেকে হালকা কোন ভার্চুয়ালাইজেশন আছে কি?</p><h3>কন্টেইনার (Container)</h3><p>কনটেইনারগুলি VM-এর মতো সম্পূর্ণ ফিজিক্যাল মেশিনকে ভার্চুয়ালাইজ না করে শুধুমাত্র অপারেটিং সিস্টেমকে ভার্চুয়ালাইজ করে।</p><p>তাদের একটি গেস্ট ওএস এবং হাইপারভাইজারের প্রয়োজন নেই।</p><p>পরিবর্তে, একটি হোস্ট মেশিনে চলমান সমস্ত কন্টেইনার হোস্ট সিস্টেমের ওএস কার্নেল (<a href="https://en.wikipedia.org/wiki/Kernel_(operating_system)">OS Kernel</a>) ভাগ করে। শুধুমাত্র অ্যাপ্লিকেশন কোড, তাদের লাইব্রেরি এবং dependency গুলো কন্টেইনার ধারণ করে।</p><p>তাই কন্টেইনার অত্যন্ত হালকা। এবং ভিএম বানানোর থেকে কন্টেইনার বানানো অনেক দ্রুত!</p><p>এছাড়াও, কন্টেইনার ভিএম থেকে বেশি <a href="https://en.wikipedia.org/wiki/Software_portability">portable</a>. জেহুতু কন্টেইনার ফিজিক্যাল মেশিনের হার্ডওয়্যার ভার্চুয়ালাইজ করেনা, সেজন্যে কন্টেইনারগুলোকে বিভিন্ন cloud প্লাটফর্ম বা ডেটা সেন্টেরে সহজে চালানো সম্ভব।</p><p>এই কারণে কন্টেইনার দ্বারা অনেক DevOps সল্যুশন এবং বিষয় বৃদ্ধি পেয়েছে — যেমন মাইক্রোসার্ভিসেস, CI/CD পাইপলাইন, horizontal scaling, ইত্যাদি।</p><p>কিন্তু কন্টেইনারই সব সমস্যার সমাধান নয়।</p><p>যেহেতু অনেক কন্টেইনার একই হোস্ট মেশিনে চলে এবং হার্ডওয়্যার ভার্চুয়ালাইজ করে না, তাই তারা VM-এর তুলনায় কম বিচ্ছিন্নতা (isolation) প্রদান করে।</p><p>এটি কিছু নিরাপত্তা বা সম্মতি (compliance) সংক্রান্ত সমস্যার জন্ম দিতে পারে, যা কিছু কিছু প্রকল্পে/প্রোজেক্টে একটি গুরুত্বপূর্ণ বিবেচনা হতে পারে।</p><p>কিন্তু এটি বেশিরভাগ অ্যাপ্লিকেশনের জন্য চিন্তার বিষয় নয়। So relax!</p><h3>উপসংহার (Conclusion)</h3><p>বেয়ার মেটালের পেড়া থেকে আমরা ভার্চুয়ালাইজেশনের বিপ্লব পেয়েছি।</p><p>আজকের বেশিরভাগ অ্যাপ্লিকেশনগুলি ভার্চুয়ালাইজেশনের দ্বারা চলে। এমনকি ক্লাউড কম্পিউটিং ও এটার দ্বারা বাস্তবায়ন করা।</p><p>OS ভার্চুয়ালাইজেশনের ধারণাটি প্রায় ২০০০ দশকের প্রথম থেকেই প্রচারিত। কিন্তু আধুনিক কন্টেইনার যুগ ২০১৩ সাল থেকে শুরু হয়, ডকারের হাত ধরে।</p><p>TechMormo তে আমাদের ডকার কন্টেইনার খুব প্রিয়! আমাদের ইতিমধ্যে ডকার নিয়ে বেশ কিছু ইংলিশ ব্লগ ও ভিডিও বানানো হয়েছে।</p><ul><li><a href="https://www.youtube.com/playlist?list=PLVXIPQEYWxlrFC0mRjplAP6mWCAX7c5it">Docker Made Easy</a></li><li><a href="https://www.youtube.com/playlist?list=PLVXIPQEYWxlq5lWS1qWGVXnx5J97ji_vR">Networking in Docker</a></li><li><a href="https://techmormo.com/posts/category/docker/">Blogs on Docker</a></li></ul><p>আপনি কি বাংলাতে ডকার শিখতে চান? নাকি অন্য কোন DevOps বিষয় শিখতে চান?</p><p>কমেন্ট করে বা <a href="https://techmormo.com/feedback/">Feedback</a> পেইজ এ আমাদের জানবেন প্লিস।</p><p>আজ এই পর্যন্তই।</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><p>Subscribe to <a href="https://techmormo.com/newsletter/">TechMormo Newsletter</a> for cutting-edge DevOps content! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0a0299b89ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/%E0%A6%AD%E0%A6%BE%E0%A6%B0%E0%A7%8D%E0%A6%9A%E0%A7%81%E0%A6%AF%E0%A6%BC%E0%A6%BE%E0%A6%B2%E0%A6%BE%E0%A6%87%E0%A6%9C%E0%A7%87%E0%A6%B6%E0%A6%A8-%E0%A6%95%E0%A6%BF-virtualization-%E0%A6%A1%E0%A6%95%E0%A6%BE%E0%A6%B0-%E0%A6%95%E0%A6%A8%E0%A7%8D%E0%A6%9F%E0%A7%87%E0%A6%87%E0%A6%A8%E0%A6%BE%E0%A6%B0-vs-%E0%A6%AD%E0%A6%BE%E0%A6%B0%E0%A7%8D%E0%A6%9A%E0%A7%81%E0%A6%AF%E0%A6%BC%E0%A6%BE%E0%A6%B2-%E0%A6%AE%E0%A7%87%E0%A6%B6%E0%A6%BF%E0%A6%A8-e0a0299b89ec">ভার্চুয়ালাইজেশন কি? (Virtualization) | ডকার কন্টেইনার vs ভার্চুয়াল মেশিন</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Docker Compose? (with demo)]]></title>
            <link>https://medium.com/techmormo/what-is-docker-compose-with-demo-a37568b45200?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/a37568b45200</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Sun, 30 Oct 2022 20:17:20 GMT</pubDate>
            <atom:updated>2022-11-10T11:43:29.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tl2lURKX2y06nM-xuHNJBw.png" /></figure><h4>Learn what Docker Compose is, how it makes the life of an Engineer easier and possible use cases</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FyFvO8Atszl8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyFvO8Atszl8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyFvO8Atszl8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e6a4f752aee8bad5777c2d5ceb72f3c/href">https://medium.com/media/4e6a4f752aee8bad5777c2d5ceb72f3c/href</a></iframe><p>What the heck is Docker Compose and how does it make the life of an Engineer like you easier?</p><p>This tutorial will answer that (and more), as simply as possible.</p><h3>Introduction</h3><p>Agenda for this tutorial:</p><ul><li>What is Docker Compose?</li><li>Why it exists? How does it differ from docker run?</li><li>How to use Docker Compose?</li><li>When to use it? — use cases</li></ul><p>Absolutely new to Docker? Check out: <a href="https://techmormo.com/posts/docker-made-easy-1-what-is-docker/">What is Docker?</a></p><p>Want to learn more about Docker Networking? Check out: <a href="https://techmormo.com/posts/docker-networking-8-summary/">Docker Networking Summary</a>.</p><p>Alright…</p><h3>What is Docker Compose?</h3><blockquote><em>Docker Compose is a tool for defining and running multi-container applications.</em></blockquote><p>With Compose, you use a YAML file to configure your application’s services (containers). Then, with a single command, you can build, start or delete your application services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/0*QZhc6mZES9gTgAaH.png" /></figure><h3>Why Docker Compose exists? How does it differ from docker run?</h3><p>Running multiple containers is a very common scenario.</p><p>Take for example a WordPress (WP) application. It consists of a WordPress service that talks to a MySQL database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/0*oNKMeDxCdN3Zj_Ik.png" /></figure><p>We could run both containers using two docker run commands with a bunch of cli arguments. The db container might be started like this:</p><pre>docker run -d \<br>  --name db \<br>  --restart always \<br>  -v db_data:/var/lib/mysql \<br>  -e MYSQL_ROOT_PASSWORD=supersecret \<br>  -e MYSQL_DATABASE=exampledb \<br>  -e MYSQL_USER=exampleuser \<br>  -e MYSQL_PASSWORD=examplepass \<br>  mysql:5.7</pre><p>Additionally, we might need to isolate these containers from the host or other containerized applications. We could create or remove networks with docker network commands, and modify docker run to take the network as an argument.</p><p>Typing out these verbose commands might be fine once or twice. But as the number of containers and configurations grows, they become increasingly harder to manage.</p><p>With Compose, we simply define the application’s configuration on a YAML file (named docker-compose.yml by default) like this:</p><pre>version: &#39;3.9&#39;</pre><pre>services:<br>  db:<br>    image: mysql:5.7<br>    restart: always<br>    environment:<br>      MYSQL_DATABASE: exampledb<br>      MYSQL_USER: exampleuser<br>      MYSQL_PASSWORD: examplepass<br>      MYSQL_ROOT_PASSWORD: supersecret<br>    volumes:<br>      - db_data:/var/lib/mysql<br>  wordpress:<br>    image: wordpress<br>    restart: always<br>    ports:<br>      - 8080:80<br>    environment:<br>      WORDPRESS_DB_HOST: db<br>      WORDPRESS_DB_USER: exampleuser<br>      WORDPRESS_DB_PASSWORD: examplepass<br>      WORDPRESS_DB_NAME: exampledb<br>    volumes:<br>      - wordpress_data:/var/www/html</pre><pre>volumes:<br>  wordpress_data:<br>  db_data:</pre><p>This file defines 2 services, db and wordpress. It also specifies the configuration options for each - like the image, environment variables, published ports, volumes, etc.</p><p>NOTE: if you don’t understand all these options yet, that’s fine.</p><p>After creating this file, we execute docker compose up, and Docker builds and runs our entire application in a new isolated environment (<a href="https://techmormo.com/posts/docker-networking-6-bridge-driver/">bridge network</a> by default).</p><p>Similarly, we can use the docker compose down command to tear everything down (except volumes).</p><p>Easy! Right? 👌</p><p>This is how compose simplifies running multi-container applications on a single host.</p><p>Being able to declare and reuse the configuration as a file makes the life of an Engineer much easier. It also allows us to version control, run tests and review our configuration just like the application’s source code.</p><p>Besides the benefits above, Compose provides the following <a href="https://docs.docker.com/compose/features-uses/#key-features-of-docker-compose">key features</a>:</p><ul><li>Have multiple isolated environments on a single host</li><li>Preserve volume data when containers are created</li><li>Only recreate containers that have changed</li><li>Share variables or configurations between environments</li></ul><p>That’s all good to know. But let’s learn…</p><h3>How to use Docker Compose?</h3><p>Source code for this demo: <a href="https://github.com/AluBhorta/docker-compose-demo">https://github.com/AluBhorta/docker-compose-demo</a></p><h3>Step 1: Install Docker &amp; Docker Compose</h3><p>First of all, make sure you have installed:</p><ul><li><a href="https://docs.docker.com/engine/install/">Docker</a></li><li><a href="https://docs.docker.com/compose/install/">Docker Compose</a></li></ul><p>NOTE: since Compose version 2, we use docker compose command instead of docker-compose. This tutorial uses version 2.</p><h3>Step 2: Create a sample web application</h3><p>Open up a terminal, create a new directory and switch into it:</p><pre>mkdir docker-compose-demo<br>cd docker-compose-demo</pre><p>Add the code for a simple Python web app on a file named app.py:</p><pre>import time</pre><pre>import redis<br>from flask import Flask</pre><pre>app = Flask(__name__)<br>cache = redis.Redis(host=&#39;redis&#39;, port=6379)</pre><pre>@app.route(&#39;/&#39;)<br>def hello():<br>    count = cache.incr(&#39;hits&#39;)<br>    return &#39;Hello World! I have been seen {} times.\n&#39;.format(count)</pre><p>This creates a Flask app with a single HTTP endpoint (/). This endpoint returns how many times it has been visited. The count is stored and incremented as an integer with a key named hits in a Redis host named redis.</p><p>Then we add the Python dependencies to a requirements.txt file:</p><pre>flask<br>redis</pre><p>After that, we create a Dockerfile - to create a Docker image based on this application:</p><pre>FROM python:3.7-alpine</pre><pre>WORKDIR /code</pre><pre>RUN apk add --no-cache gcc musl-dev linux-headers</pre><pre>COPY requirements.txt requirements.txt<br>RUN pip install -r requirements.txt</pre><pre>EXPOSE 5000</pre><pre>COPY . .</pre><pre>ENV FLASK_APP=app.py<br>ENV FLASK_RUN_HOST=0.0.0.0</pre><pre>CMD [&quot;flask&quot;, &quot;run&quot;]</pre><p>This tells Docker to:</p><ul><li>Build an image starting with the Python 3.7 Alpine Linux image</li><li>Set the working directory to /code</li><li>Install gcc and other dependencies with the apk package manager</li><li>Copy requirements.txt from host to image</li><li>Install the Python dependencies with pip</li><li>Add metadata to the image to describe that the container is listening on port 5000</li><li>Copy the current directory . in the project to the workdir . in the image</li><li>Set environment variables used by the flask command</li><li>Set the default command for the container to flask run</li></ul><p>Then we create a docker-compose.yml file for us to use Docker Compose:</p><pre>version: &quot;3.9&quot;</pre><pre>services:<br>  redis:<br>    image: &quot;redis:alpine&quot;<br>  web:<br>    build: .<br>    ports:<br>      - &quot;8000:5000&quot;<br>    depends_on:<br>      - redis</pre><p>This Compose file defines two services: web and redis.</p><p>The redis service uses a public redis:alpine image pulled from the Docker Hub registry.</p><p>The web service uses an image that’s built from the Dockerfile in the current directory (.). It then maps port 8000 on the host to port 5000 on the container where the flask server will be running. It also specifies that web depends on redis so that Docker knows to start redis before web.</p><p>NOTE: since Compose creates a new bridge network on project startup, web can reach redis simply by using the service’s name ie. redis.</p><h3>Step 3: Run and test the application</h3><p>To run the application, all we have to do now is:</p><pre>docker compose up</pre><p>Docker will automatically pull the redis image, build our web image and start the containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/0*Ok3GppYQdIgWUjMh.png" /></figure><p>Once deployed, we should now be able to reach the application at <a href="http://localhost:8000/">localhost:8000</a> on your browser.</p><p>Or alternatively, use curl on a separate terminal to reach the flask application like so:</p><pre>curl localhost:8000</pre><p>You should see something like this:</p><pre>Hello World! I have been seen 1 times.</pre><p>The count is incremented every time we make a request.</p><p>Awesome! 👌</p><p>We can list the containers of the Compose project with:</p><pre>docker compose ps</pre><p>NOTE: docker compose up will by default attach to your terminal and print the logs from the services. We can use ctrl+c to detach that terminal, but it will stop the services.</p><p>To run the services in the background, use -d the flag:</p><pre>docker compose up -d</pre><p>If you want to view the logs, use:</p><pre>docker compose logs -f</pre><p>NOTE: -f will follow the log output as new logs are generated.</p><h3>Step 4: Modify the application</h3><blockquote><em>Changes are inevitable.</em></blockquote><p>Let us make a change to our app.</p><p>The web container is printing out a warning:</p><pre>WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.</pre><p>In production, we definitely want to run a production-grade server like gunicorn instead of the development server, we get with flask run.</p><p>So, let’s first add gunicorn to requirements.txt:</p><pre>flask<br>redis<br>gunicorn</pre><p>Then remove the last 3 instructions of Dockerfile and add a new CMD instruction:</p><pre>FROM python:3.7-alpine</pre><pre>WORKDIR /code</pre><pre>RUN apk add --no-cache gcc musl-dev linux-headers</pre><pre>COPY requirements.txt requirements.txt<br>RUN pip install -r requirements.txt</pre><pre>EXPOSE 5000</pre><pre>COPY . .</pre><pre>CMD [&quot;gunicorn&quot;, &quot;--bind&quot;, &quot;0.0.0.0:5000&quot;, &quot;app:app&quot;]</pre><p>Images built from this Dockerfile will now run gunicorn instead of the flask dev server.</p><p>Once we’ve made the changes, we need to rebuild the web image:</p><pre>docker compose build</pre><p>Then we restart the web service to use the new image:</p><pre>docker compose up web -d --no-deps -t 1</pre><p>NOTE:</p><ul><li>--no-deps tells Docker not to (re)start dependent services.</li><li>-t 1 specifies the container shutdown timeout of 1 second instead of the default 10s.</li></ul><p>Try to reach web again:</p><pre>curl localhost:8000</pre><p>It should work as expected.</p><p>But if you check the logs:</p><pre>docker compose logs web -f</pre><p>You will notice we don’t have the warning anymore since we’re using gunicorn.</p><p>Noice!</p><h3>Step 5: Clean up</h3><p>To remove all the services, we simply run:</p><pre>docker compose down</pre><p>If we had defined volumes in the services (like in the WordPress example), the volumes wouldn’t be automatically removed with docker compose down. This is mainly to avoid accidental deletion of data.</p><p>To tear down everything including volumes, use the -v flag:</p><pre>docker compose down -v</pre><p>Congratulations! You can now Compose! 🙌</p><h3>When to use Docker Compose? — use cases</h3><ul><li><strong><em>Development environments<br></em></strong>When developing software, the ability to run applications and their dependencies in isolated environments are crucial. For example, you might have a dependency on another team’s application, which in turn might have its own set of complexities like configuring the database in a particular way. By using Compose, you can run the whole stack or remove it with a single command.</li><li><strong><em>Automated testing environments<br></em></strong>Automated workflows like CI/CD pipelines generally require tools to easily create and destroy environments. Containers are ideal for such environments due to their low resource footprint and speed. By using a configuration file, Compose provides a convenient way to create and destroy such environments for your test suite.</li><li><strong><em>Single host deployments<br></em></strong>Although Compose was mainly developed for development and testing workflows, it is sometimes used in production for running containers on a single host. While Compose is improving, it is not an orchestrator like Swarm or Kubernetes, but more of a wrapper around Docker’s API. Check out the <a href="https://docs.docker.com/compose/production/">official documentation</a> before using compose in production.</li></ul><h3>Conclusion</h3><p>In this tutorial, we learnt what Docker Compose is, why it exists, how to use it and when to use it.</p><p>By specifying container configuration in a file, Compose simplifies running multi-container workloads on a single host.</p><p>If you found this tutorial helpful, leaving a like, comment or subscribing will really help us out.</p><p>You might also enjoy our <a href="https://youtube.com/@techmormo">YouTube Channel</a>.</p><p>Thanks for making it so far!</p><p>We have a LOT more exciting DevOps content on the way! 🙌</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a37568b45200" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/what-is-docker-compose-with-demo-a37568b45200">What is Docker Compose? (with demo)</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Networking Summary | Networking in Docker #8]]></title>
            <link>https://medium.com/techmormo/docker-networking-summary-networking-in-docker-8-18308679a7f0?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/18308679a7f0</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Mon, 24 Oct 2022 11:37:51 GMT</pubDate>
            <atom:updated>2022-10-30T19:56:00.598Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqaxpU4JXLnzJxKAd_VrKQ.png" /></figure><h4>Summary of Docker Networking Series</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3c0miSU038E%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3c0miSU038E&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3c0miSU038E%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/436e7739713c235266ea8e9a4ad98b9d/href">https://medium.com/media/436e7739713c235266ea8e9a4ad98b9d/href</a></iframe><p>How do Docker Containers communicate using networks?</p><p>If you have gone through all the tutorials in this series, you should know that well by now.</p><h3>Introduction</h3><p>This blog is the 8th and last tutorial in a series for Docker Networking.</p><ul><li><a href="https://www.techmormo.com/posts/docker-networking-1-why-is-networking-important/">blog #1 — <strong>Why is Networking important in Docker?</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-2-basics-of-networking/">blog #2 — <strong>Basics of Networking</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-3-drivers-overview/">blog #3 — <strong>Docker Network Drivers Overview</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-4-none-driver/">blog #4 — <strong>None Network Driver</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-5-host-driver/">blog #5 — <strong>Host Network Driver</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-6-bridge-driver/">blog #6 — <strong>Bridge Network Driver</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-7-overlay-driver/">blog #7 — <strong>Overlay Network Driver</strong></a></li></ul><p>If you are looking to learn more about the basics of Docker, I’ll recommend checking out the <a href="https://www.techmormo.com/posts/docker-made-easy-1-what-is-docker/">Docker Made Easy</a> series.</p><h3>Summary</h3><p>In this series, first we answered “<a href="https://www.techmormo.com/posts/docker-networking-1-why-is-networking-important/">Why is networking important in Docker?</a>”.</p><p>Then we learnt about some <a href="https://www.techmormo.com/posts/docker-networking-2-basics-of-networking/">core networking concepts</a> like the Internet Protocol (IP), network interfaces, subnets, network ports, DNS, etc.</p><p>Then we discussed about <a href="https://techmormo.com/posts/docker-networking-3-drivers-overview/">Docker Network Drivers</a>, which is how Docker hides the network details and simplifies how to attach different types of networks to containers.</p><p>We then dived into the of the 4 main Network Drivers:</p><ul><li><a href="https://www.techmormo.com/posts/docker-networking-4-none-driver/">none driver</a> — isolates a container by disabling its network.</li><li><a href="https://techmormo.com/posts/docker-networking-5-host-driver/">host driver</a> — allows the container to share the network stack of the host system.</li><li><a href="https://techmormo.com/posts/docker-networking-6-bridge-driver/">bridge driver</a> — creates an internal network within a single host.</li><li><a href="https://techmormo.com/posts/docker-networking-7-overlay-driver/">overlay driver</a> — creates a distributed network able to span multiple hosts.</li></ul><p>For each of the Network Drivers, we learnt how to use it, some possible use cases and their limitations.</p><h3>Conclusion &amp; what’s next?</h3><p>Thank you so much for making it so far! 🎉 🫂</p><p>It has been a great pleasure and learning experience to share about Docker Networking with you. I myself got to learn many important concepts and details in the making of this series.</p><p>What do you want to learn next?</p><p>Want more Docker? What about Kubernetes, AWS, Linux, Git, Python, or something else entirely?</p><p>We need <a href="https://techmormo.com/feedback">YOUR FEEDBACK 🎯</a>.</p><p>This is just the start! We’re actively working to simplify complex DevOps + Engineering topics, and help you become a more competent Engineer.</p><p>If you found any mistakes or have any suggestions to improve our content, please let us know.</p><p>See you on the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18308679a7f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/docker-networking-summary-networking-in-docker-8-18308679a7f0">Docker Networking Summary | Networking in Docker #8</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Overlay Network Driver | Networking in Docker #7]]></title>
            <link>https://medium.com/techmormo/the-overlay-network-driver-networking-in-docker-7-8d87af5eccd3?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d87af5eccd3</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 13:16:16 GMT</pubDate>
            <atom:updated>2022-10-24T10:59:04.725Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUl_QYjwSnbo-W4c3Gnjag.png" /></figure><h4>Learn how the Overlay driver simplifies multi-host networking on Docker, how to use it, possible use cases and limitations</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgJVcKVdYhpI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgJVcKVdYhpI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgJVcKVdYhpI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ecbfa6d70b1439b7f082369ee4c5ed5a/href">https://medium.com/media/ecbfa6d70b1439b7f082369ee4c5ed5a/href</a></iframe><p>What is the overlay network driver in Docker and how does it power docker swarm and multi-host container networking?</p><p>This blog will try to answer that (and more) as simply as possible.</p><h3>Introduction</h3><p>This blog is the seventh one in a series for Docker Networking.</p><ul><li><a href="https://www.techmormo.com/posts/docker-networking-1-why-is-networking-important/">blog #1 — <strong>Why is Networking important in Docker?</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-2-basics-of-networking/">blog #2 — <strong>Basics of Networking</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-3-drivers-overview/">blog #3 — <strong>Docker Network Drivers Overview</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-4-none-driver/">blog #4 — <strong>None Network Driver</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-5-host-driver/">blog #5 — <strong>Host Network Driver</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-6-bridge-driver/">blog #6 — <strong>Bridge Network Driver</strong></a></li></ul><p>If you are looking to learn more about the basics of Docker, I’ll recommend checking out the <a href="https://www.techmormo.com/posts/docker-made-easy-1-what-is-docker/">Docker Made Easy</a> series.</p><p>Here’s the agenda for this blog:</p><ul><li>What is the overlay network driver?</li><li>How to use it?</li><li>When to use it? — possible use cases</li><li>What are its limitations?</li></ul><p>Here are some quick reminders:</p><ul><li>A <strong>Docker host</strong> is a physical or virtual machine that runs the Docker daemon.</li><li><strong>Docker Network drivers</strong> enable us to easily use multiple types of networks for containers and hide the complexity required for network implementations.</li></ul><p>Alright, so…</p><h3>What is the overlay driver?</h3><blockquote>The overlay network driver creates a distributed network that can span multiple docker hosts.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7i7Hc0ovoXUg0TQeBr66w.png" /></figure><p>Overlay networks were designed to be used with <em>docker swarm services</em>.</p><p>Docker swarm is a container orchestration tool (like Kubernetes) that allows us to manage multiple containers on multiple hosts.</p><p>To deploy an application (ie. docker image) on the swarm, we create a swarm service, which can run 1 or more containers from the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Axo5awLcQ52WW9FEzw_1vQ.png" /></figure><p>They will make more sense when we actually try them out in a moment.</p><p>When a docker host initiates or joins a swarm, 2 new networks are created:</p><ul><li>a default overlay network called ingress which handles the control and data traffic related to swarm services.</li><li>and a virtual bridge network called docker_gwbridge that connects overlay networks to the individual Docker daemon’s physical network.</li></ul><p>Like custom bridge networks we saw in the last tutorial, custom or user-defined overlay networks can be created using the docker network create command (using the --driver overlay option).</p><p>Let’s directly see overlay drivers in action…</p><h3>How to use the overlay driver?</h3><p>I encourage you to follow along to get the most out of this tutorial.</p><h3>Initialize the swarm</h3><p><strong>Provision hosts with network connectivity</strong></p><p>To see the full potential of overlay networks, we need multiple hosts. Let’s go with 3.</p><p>The simplest solution is to use a Virtual Machine tool like <a href="https://www.virtualbox.org/">VirtualBox</a> or <a href="https://mac.getutm.app/">UTM</a> (on Mac) to create multiple VMs.</p><p>For multiple machines to communicate together as a swarm using overlay, docker requires the following ports to be open between the hosts:</p><ul><li>TCP port 2377 for cluster management communications</li><li>TCP and UDP port 7946 for communication among nodes</li><li>UDP port 4789 for overlay network traffic</li></ul><p>If you’re running VMs locally, make sure the VMs can reach each other over the network (ie. select ”Internal Network” on VirtualBox, or “Shared Network” on UTM).</p><p>If you’re running VMs on the cloud or in a strict networked environment, make sure to update your firewall rules / security groups to account for the open port requirements.</p><p>Before moving forward, ensure connectivity between your hosts with something like ping.</p><p>I have created 3 Debain Linux VMs named node1, node2 and node3.</p><p><strong>Install Docker</strong></p><p>Follow the official docker instructions to install Docker Server on all your hosts.</p><p><a href="https://docs.docker.com/engine/install/">https://docs.docker.com/engine/install/</a></p><p><strong>Create the swarm and join the nodes</strong></p><p>On the first node, we will run the following:</p><pre>docker swarm init</pre><p>This will initialize the swarm with the first node as the manager and the only member for now.</p><p>It should also print the command that will let us add other nodes into the swarm as workers, like the following:</p><pre>docker swarm join --token SWMTKN-1-07ti6ugkt6hia44ljws48eik9t4v0806515jkodf3zn1pb7uod-15c75qxan0guvqmcswt4blz2l 192.168.64.4:2377</pre><p>We will copy the full docker swarm join command and run it on each of our remaining nodes.</p><p>When all are successfully joined, we can check the nodes by running the following on the manager node:</p><pre>docker node ls</pre><p>We can also check that the 2 new networks were created with:</p><pre>docker network ls</pre><p>Awesome, we now have a docker swarm cluster with an overlay network!</p><h3>The default overlay network — ingress and routing mesh</h3><p>Let us start off by creating a service named whoami using the containous/whoami image:</p><pre>docker service create \<br>  --name whoami \<br>  -p 8000:80 \<br>  containous/whoami</pre><p>This image runs a tiny webserver on port 80 inside the container, and simply returns some OS and HTTP information.</p><p>The -p 8000:80 option tells docker to map port 80 inside the container to port 8000 on the host.</p><p><em>But on which host?</em></p><p>Check which host (NODE) the container is running on using:</p><pre>docker service ps whoami</pre><p>Let’s say the container is running on node2.</p><p>How can we confirm that the ingress network is being used?</p><p>Switch to the node2 terminal and get the container ID:</p><pre>CONTAINER_ID=$(docker ps --filter name=whoami.1 --format &#39;{{.ID}}&#39;)</pre><p>Then inspect its network:</p><pre>docker inspect $CONTAINER_ID -- format=&#39;{{json.NetworkSettings.Networks}}&#39; | jq .</pre><p>You should see a json object named ingress, confirming our hypothesis.</p><p>Since the service has been published on port 8000, if we send a request with curl from node2, like:</p><pre>curl 127.0.0.1:8000</pre><p>We will get something like this:</p><pre>Hostname: fb772a20940c<br>IP: 127.0.0.1<br>IP: 10.0.0.28<br>IP: 172.18.0.3<br>RemoteAddr: 10.0.0.3:59882<br>GET / HTTP/1.1<br>Host: 127.0.0.1:8000<br>User-Agent: curl/7.64.0<br>Accept: */*</pre><p>Not surprising.</p><p>But the cool thing is, if you try to run the same curl command on the other hosts, you will still get the same response (except for RemoteAddr), even though those nodes don’t have the container running in them. Try it out!</p><p>Why is that?</p><p>All swarm nodes participate in an ingress <strong>routing mesh</strong>. The routing mesh enables each node in the swarm to accept connections on published ports for any service running in the swarm, even if there’s no container running on the node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4aynyoqjCIGgfsDVE6buwg.png" /></figure><p>This means, whenever a docker swarm service publishes a port (with -p/--publish), that service is reachable on that port across all swarm nodes. The overlay network is responsible for routing the traffic to the correct container on the correct node.</p><p>But what if there are more than 1 containers?</p><p>Let’s find out!</p><p>Running multiple containers of a service is as simple as:</p><pre>docker service scale whoami=3</pre><p>In a few seconds, we should have 3 replicas of the whoami container running.</p><p>Check which host (NODE) the containers are running on using:</p><pre>docker service ps whoami</pre><p>We should see that all 3 nodes are assigned a container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1uy-swE57QOdllP13Qns4g.png" /></figure><p>Docker swarm is smart enough to distribute the container workload among the available nodes.</p><p>If we now curl again on any of the nodes with:</p><pre>curl 127.0.0.1:8000</pre><p>We should see that the Hostnames and IPs are also changing.</p><p>This is because, containers running under a swarm service on the overlay network are automatically load-balanced!</p><p>Awesome.</p><p>Now, what if we want to attach a standalone container (not a swarm service) on the overlay network, for example to communicate across hosts?</p><p>If we try to do the following:</p><pre>docker run -d --rm \<br>  --network ingress \<br>  --name app1 \<br>  nginx:alpine</pre><p>This will raise an error like “PermissionDenied desc = network ingress not manually attachable.”</p><p>The default overlay network (ingress) doesn’t allow attaching standalone containers. For that, we can use…</p><h3>User-defined Overlay Networks</h3><p>At first, we have to create a network with the overlay driver option:</p><pre>docker network create \<br>  --driver overlay \<br>  --attachable \<br>  my-overlay</pre><p>By using the --attachable flag, docker will allow us to attach standalone containers to it.</p><p>If we try to run a standalone container again but this time using our custom overlay network my-overlay:</p><pre>docker run -d --rm \<br>  --network my-overlay \<br>  --name app1 \<br>  nginx:alpine</pre><p>it should work.</p><p>Since app1 is lonely, let’s run a service with 3 replicas (containers) on my-overlay as well:</p><pre>docker service create \<br>  --name web \<br>  --network my-overlay \<br>  --replicas 3 \<br>  nginx:alpine</pre><p>NOTE: we have not published any ports, but this image runs <a href="https://www.nginx.com/">nginx</a> server on port 80 inside the container.</p><p>Now, web service containers can communicate with app1 container and vice versa!</p><p>Really?</p><p>Try to reach web service from app1 simply by using the name of the service with curl:</p><pre>docker exec app1 curl web</pre><p>It should print out the index.html page of nginx.</p><p>To test the other way around ie. communication from web service to app1, first, get the container id of a web service container.</p><pre>CONTAINER_ID=$(docker ps --filter name=web --format &#39;{{.ID}}&#39; | head -n 1)</pre><p>Then use exec again to curl app1:</p><pre>docker exec $CONTAINER_ID curl app1</pre><p>See the nginx index page?</p><p>Congratulations! You now know how to use overlay networks! 🎉</p><p>Of course, there’s a lot more to it but we have covered the essentials. Feel free to learn more from <a href="https://docs.docker.com/network/overlay">the official docs</a>.</p><h3>Clean up</h3><p>Let’s clean up our mess.</p><p>Remove app1:</p><pre>docker rm -f app1</pre><p>Then remove the services from the manager node:</p><pre>docker service rm whoami web</pre><p>After the services are down, remove the custom overlay:</p><pre>docker network rm my-overlay</pre><p>Then, remove each of the worker nodes from the swarm (by running on each worker node):</p><pre>docker swarm leave</pre><p>Finally, make the manager leave the swarm:</p><pre>docker swarm leave --force</pre><p>Well done! 👏</p><h3>When to use the overlay driver? - possible use cases</h3><ul><li>If you have multiple nodes to deploy your containerized workloads, but you have a small team with limited containerization experience.</li><li>If you need a simple container orchestrator like docker swarm, but do not have the time/resources to invest in more complex orchestrators like Kubernetes.</li></ul><h3>Limitations of the overlay driver</h3><ol><li><strong>overlay driver is slower than </strong><strong>host driver</strong>: If you need the highest network performance and your workload is running on a single host, or you are okay with setting up the OS level routing by yourself, then the host driver would be more suitable than overlay. This is because host driver directly uses the host’s network, instead of having to setup separate interfaces, and port-mapping configurations.</li><li><strong>Docker (swarm) does not natively support autoscaling</strong>: autoscaling is not supported out of the box as you need to provision new infrastructure/servers which is out of the scope of docker. There are 3rd party tools/scripts that can help, but if you really need the ability to autoscale, you should consider something like Kubernetes or AWS ECS.</li></ol><h3>Conclusion</h3><p>In this blog, we learnt about the overlay network driver in docker - what it is, how to use it, and some possible use cases and limitations.</p><p>By connecting multiple docker daemons in a swarm, the overlay driver simplifies multi-host networking. But its drawbacks are to be kept in mind, especially when using it in production.</p><p>I hope I could make things clearer for you, be it just a tiny bit.</p><p>In the next blog, we will summarize what we learnt in this docker networking series.</p><p>Thanks for making it so far! 👏</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d87af5eccd3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/the-overlay-network-driver-networking-in-docker-7-8d87af5eccd3">The Overlay Network Driver | Networking in Docker #7</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Bridge Network Driver | Networking in Docker #6]]></title>
            <link>https://medium.com/techmormo/the-bridge-network-driver-networking-in-docker-6-af4e9809a14d?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/af4e9809a14d</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Wed, 15 Jun 2022 14:30:57 GMT</pubDate>
            <atom:updated>2022-10-24T10:43:07.601Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vqqPeRXP437TBfDIqA5ICQ.png" /></figure><h4>Learn what the Bridge driver is in Docker, how it simplifies multi-container networking on a single host, how to use it, possible use cases and limitations</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZ5QLPkp-Ogo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZ5QLPkp-Ogo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZ5QLPkp-Ogo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c8bcdab12ca464358778e78b66645d2/href">https://medium.com/media/0c8bcdab12ca464358778e78b66645d2/href</a></iframe><p>What is the bridge network driver in Docker and how does it simplify networking on a single host?</p><p>This blog will try to answer that (and more) as simply as possible.</p><h3>Introduction</h3><p>This blog is the sixth one in a series for Docker Networking.</p><ul><li><a href="https://www.techmormo.com/posts/docker-networking-1-why-is-networking-important/">blog #1 — <strong>Why is Networking important in Docker?</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-2-basics-of-networking/">blog #2 — <strong>Basics of Networking</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-3-drivers-overview/">blog #3 — <strong>Docker Network Drivers Overview</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-4-none-driver/">blog #4 — <strong>None Network Driver</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-5-host-driver/">blog #5 — <strong>Host Network Driver</strong></a></li></ul><p>If you are looking to learn more about the basics of Docker, I’ll recommend checking out the <a href="https://www.techmormo.com/posts/docker-made-easy-1-what-is-docker/">Docker Made Easy</a> series.</p><p>Here’s the agenda for this blog:</p><ul><li>What is the bridge network driver?</li><li>How to use it?</li><li>When to use it? — possible use cases</li><li>its limitations</li></ul><p>Here are some quick reminders:</p><ul><li>A <strong>Docker host</strong> is a physical or virtual machine that runs the Docker daemon.</li><li><strong>Docker Network drivers</strong> enable us to easily use multiple types of networks for containers and hide the complexity required for network implementations.</li></ul><p>Alright, so…</p><h3>What is the bridge driver?</h3><blockquote><em>A </em><em>bridge driver can be used to create an internal network within a </em>single<em> Docker host.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*E6o7wtBEIDCpuy8B.png" /></figure><p>A network created using the bridge driver forms a namespace that is separate from the host’s network namespace. Therefore, containers running on bridge networks are isolated from the host’s network.</p><p>This driver is used most often for applications that require one or more containers running on a single host.</p><p>When Docker is started, it automatically creates a default bridge network named, and uses it for containers that do not specify any networks explicitly. We can also create many custom ‘user-defined’ bridge networks.</p><p>User-defined bridge networks are superior to the default bridge network in the following ways…</p><h3>Differences between default bridge and User-defined bridge networks</h3><ol><li><strong>User-defined bridges provide automatic DNS resolution between containers<br></strong>Containers on the default bridge network can only access each other by IP addresses, unless you manually create links using the --link option, which is considered legacy. These links need to be created in both directions, so this gets increasingly more complex the more containers there are to communicate.<br>On a user-defined bridge network, containers can resolve each other by name or alias. Imagine an application with a web front-end and a database back-end. If you call your containers web and db, the web container can connect to the db container using the hostname db.</li><li><strong>User-defined bridges provide better isolation<br></strong>All containers without a --network specified, are attached to the default bridge network, which can be a risk, as unrelated stacks/services/containers are then able to communicate.<br>Using a user-defined network provides a scoped network in which only containers attached to that network are able to communicate.</li><li><strong>Containers can be attached and detached from user-defined networks on the fly<br></strong>To remove a container from the default bridge network, you need to stop the container and recreate it with different network options.<br>But you can connect or disconnect containers from user-defined networks on the fly.</li><li><strong>Each user-defined network creates a configurable bridge<br></strong>If your containers use the default bridge network, you can configure it, but all the containers use the same settings, such as MTU and iptables rules. In addition, configuring the default bridge network happens outside of Docker itself, and requires a restart of the Docker Daemon.<br>User-defined bridge networks are created and configured using docker network create commands. If different groups of applications have different network requirements, you can configure each user-defined bridge separately.</li><li><strong>Linked containers on the default bridge network share environment variables<br></strong>Originally, the only way to share environment variables between two containers was to link them using the --link flag,<br>Although this is not possible with user-defined networks, there are better alternatives for sharing environment variables like:<br>- sharing files using Docker Volumes<br>- sharing variables from a docker-compose configuration when using Docker Compose<br>- using Docker Secrets and/or Docker Configs when using Docker Swarm Services</li></ol><h3>How to use the bridge driver?</h3><p>I encourage you to follow along with the hands-on lab that follows.</p><p><strong>Demo: Default bridge network with cli</strong></p><p>Let’s start by running two Nginx containers (in the background with -d) named app1 and app2:</p><pre>docker run -d --name app1 nginx:alpine<br>docker run -d --name app2 nginx:alpine</pre><p>As discussed previously, when no particular --network is specified from the cli, the default bridge network is used.</p><p>We can check that Nginx is in fact running on both containers by using docker exec to run curl localhost on both containers:</p><pre>docker exec app1 curl localhost<br>docker exec app2 curl localhost</pre><p>On success, this would print out the index.html page of Nginx.</p><p>Footnotes:</p><ul><li>docker exec is used to execute a command inside a running container.</li><li>nginx runs on port 80 inside its container.</li><li>curl localhost is the same as curl <a href="http://localhost/">http://localhost:80</a></li></ul><p>Now let’s try to communicate between the containers.</p><p>Trying to reach app2 from app1 using the hostname app2 will not work since DNS doesn’t work out of the box with the default bridge.</p><pre>docker exec app1 curl app2</pre><p>Let’s get the IP address of app2 with:</p><pre>docker inspect -f &#39;{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}&#39; app2</pre><p>On my system, it is 172.17.0.3 (could be different in yours).</p><p>If we now try to reach app2 from app1 again, but with the IP address:</p><pre>docker exec app1 curl 172.17.0.3</pre><p>We should see that it works!</p><p>Using IP addresses is neither reliable nor easy to maintain since more containers could be added to the default network.</p><p>If we used the legacy --link option, we could have used the name of the container instead of the IP. But there are major drawbacks to using the default bridge (as discussed in the previous section), and using the --link is discouraged.</p><p>So, let’s directly go to…</p><p><strong>Demo: User-defined bridge network with cli</strong></p><p>A user-defined bridge network has to be created before it can be used. So let’s create one named my-bridge:</p><pre>docker network create --driver bridge my-bridge</pre><p>NOTE: since bridge is the default network driver, specifying --driver bridge in the command is optional.</p><p>We will run two containers again and name them app3 and app4:</p><pre>docker run -d --name app3 --network my-bridge nginx:alpine<br>docker run -d --name app4 --network my-bridge nginx:alpine</pre><p>Again, let’s test if Nginx is running properly on both containers:</p><pre>docker exec app3 curl localhost<br>docker exec app4 curl localhost</pre><p>On successfully printing the index pages, let’s move on to communication between the containers.</p><p>If we try to reach app4 from app3 using the hostname app4:</p><pre>docker exec app3 curl app4</pre><p>We will see that it will succeed!</p><p>The same thing will also work when reaching app3 from app4:</p><pre>docker exec app4 curl app3</pre><p>Will we be able to reach app2 from app3 using DNS?</p><pre>docker exec app3 curl app2</pre><p>Nope.</p><p>What about using app2’s IP address? (connection timeout added to not keep curl waiting indefinitely)</p><pre>docker exec app3 curl 172.17.0.3 --connect-timeout 5</pre><p>No again.</p><p>We cannot reach app2 from app3 (or app4) and vice versa because they are on two separate networks, the default bridge and our user-defined my-bridge.</p><p><strong>Demo: publishing container ports</strong></p><p>Containers connected to the same bridge network effectively expose all ports to each other. For a container port to be accessible from the host machine or hosts of external networks, that container port must be <em>published</em> using the -p or --publish flag.</p><p>Let’s see this in action.</p><p>All the existing containers have Nginx running inside them separately on port 80 of each container, but none of them can be reached from the host’s port 80 yet. We can confirm by running curl on the host:</p><pre>curl localhost</pre><p>Assuming you didn’t have any applications running on port 80, curl should return an error like “Connection refused”.</p><p>If we want the container’s application (in this case Nginx) to be reachable from the host, we can publish its port (i.e. map the container’s port to a host port).</p><pre>docker run -d --name app5 -p 3000:80 nginx:alpine</pre><p>This will map port 3000 on the host to port 80 inside the container.</p><p>If we now try to curl on port 3000 of the host:</p><pre>curl localhost:3000</pre><p>We should see the Nginx index page.</p><p>Nice work! :)</p><p><strong>Clean up</strong></p><p>We can remove all containers on the system using the following command:</p><pre>docker rm -f $(docker ps -aq)</pre><p>NOTE: this will also remove any containers you had in your system previously before this tutorial.</p><p>Let’s also remove the my-bridge as well.</p><pre>docker network rm my-bridge</pre><p>All clean! ✨</p><h3>When to use the bridge driver? - possible use cases</h3><ol><li><strong>When Multi-Container Networking is required on a single host<br></strong>Networks created by using the bridge driver are contained within a single host, therefore it is ideal for most workloads that run on a single machine, like an engineer’s local development environment or a company that runs multiple applications on a single server, etc.</li><li><strong>When using Docker Compose<br></strong>Docker Compose simplifies running multi-container workloads, especially on a single machine. It does so by using a YAML configuration file (docker-compose.yaml) like the following example:</li></ol><pre>version: &quot;3.1&quot;</pre><pre>services:<br>     nginx:<br>       image: nginx:alpine<br>       ports:<br>         - 80:80<br>     web:<br>       image: myapp-custom-image<br>     mysql:<br>       image: mysql<br>   # ...</pre><p>This file specifies a set of services that use docker images to run containers, and bridge networks are setup to enable inter-container communication. Compose creates and uses user-defined bridge networks out of the box when its services are first created using the docker-compose up command. It also removes the user-defined bridge networks created when services are taken down with docker-compose down.</p><p>NOTE: We will learn more about the awesome Docker Compose tool in an upcoming post, so, stay tuned.</p><p>If you know of any other use cases for bridge drivers, please let us know.</p><h3>Limitations of the bridge driver</h3><ul><li><strong>Limited to a single host:</strong> The bridge driver provides seamless network isolation for containers on a single host only. If networking between multiple hosts is required, either the Overlay driver (recommended) or some custom OS level routing has to be implemented.</li><li><strong>bridge driver is slower than </strong><strong>host driver:</strong> Since an internal network has to be created and ports have to be mapped (via NAT/userland-proxy) for bridge driver, it incurs more overhead in terms of raw network performance at the cost of providing better isolation than the host driver. If you are not running multiple containers on a single production machine or if a very high network throughput is required, then the host driver might provide a better alternative to bridge due to its faster performance.</li><li><strong>default </strong><strong>bridge drawbacks:</strong> As discussed previously in the section ‘Differences between default bridge and User-defined bridge networks’, the default bridge is far inferior to user-defined ones. The default bridge network is considered a legacy detail of Docker and is not recommended for production use.</li></ul><h3>Conclusion</h3><p>In this blog, we learnt about the bridge network driver in docker - what it is, how to use it, and some possible use cases and limitations.</p><p>By creating an internal network, the bridge driver simplifies network isolation on a single host. But its drawbacks are to be kept in mind, especially when using it in production.</p><p>I hope I could make things clearer for you, be it just a tiny bit.</p><p>In the next blog, we will learn about the overlay driver - which simplifies multi-host container networking.</p><p>Thanks for making it so far! 👏</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af4e9809a14d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/the-bridge-network-driver-networking-in-docker-6-af4e9809a14d">The Bridge Network Driver | Networking in Docker #6</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Host Network Driver | Networking in Docker #5]]></title>
            <link>https://medium.com/techmormo/the-host-network-driver-networking-in-docker-5-587f65499fda?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/587f65499fda</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Sun, 13 Mar 2022 01:26:41 GMT</pubDate>
            <atom:updated>2022-10-24T10:43:00.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kufPBrY8YVfK82L0bPxVPg.png" /></figure><h4>Learn what the Host driver is, how it provides the best performance, how to use it, possible use cases and limitations</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fqice7-Cfgzw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dqice7-Cfgzw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fqice7-Cfgzw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f7ec3e9759dee5ac1bd1b56cbcc1e3b9/href">https://medium.com/media/f7ec3e9759dee5ac1bd1b56cbcc1e3b9/href</a></iframe><p>What is the host network driver in Docker and how does it provide the best network performance?</p><p>This blog will try to answer that (and more) as simply as possible.</p><h3>Introduction</h3><p>This blog is the fifth one in a series for Docker Networking.</p><ul><li><a href="https://www.techmormo.com/posts/docker-networking-1-why-is-networking-important/">blog #1 — <strong>Why is Networking important in Docker?</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-2-basics-of-networking/">blog #2 — <strong>Basics of Networking</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-3-drivers-overview/">blog #3 — <strong>Docker Network Drivers Overview</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-4-none-driver/">blog #4 — <strong>None Network Driver</strong></a></li></ul><p>If you are looking to learn more about the basics of Docker, I’ll recommended checking out the <a href="https://www.techmormo.com/posts/docker-made-easy-1-what-is-docker/">Docker Made Easy</a> series.</p><p>Here’s the agenda for this blog:</p><ul><li>What is the host network driver?</li><li>How to use it?</li><li>When to use it? — possible use cases</li><li>its limitations</li></ul><p>Here are some quick reminders:</p><ul><li>A <strong>Docker host</strong> is the physical or virtual machine that runs the Docker daemon.</li><li><strong>Docker Network drivers</strong> enable us to easily use multiple types of networks for containers and hide the complexity required for network implementations.</li></ul><p>Alright, so…</p><h3>What is the host driver?</h3><blockquote><em>When a container uses the </em><em>host network driver, the container shares the network stack (namespace) of its host.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jq8es_hav90uAzfO66zKoQ.png" /></figure><p>This means the network of the container is not virtualized, making the container appear as if it is the host itself, from a networking perspective.</p><p>A direct consequence of this is that — if a container using the host driver publishes a port, let’s say 8000, then that port will also be published on the host machine. If that port is already in use, then the container will not start successfully.</p><p>However, in all other ways — like storage, process, and user namespace, the container is isolated from the host.</p><p>NOTE: the host driver is only supported on Linux as of now i.e. host driver is not available on Mac or Windows platforms.</p><h3>How to use the host driver?</h3><p><strong>Example without specifying any network — using default </strong><strong>bridge driver</strong></p><p>Let’s start off by running an nginx container named app1 in the background (-d) without specifying any network:</p><pre>docker run -d --name app1 nginx:alpine</pre><p>The nginx container by default maps onto port 80 inside the container. Docker uses the default bridge network driver if no driver is specified.</p><p>If we use curl localhost inside the container, we’ll see nginx the nginx index page successfully:</p><pre># works<br>docker exec app1 curl localhost</pre><blockquote><em>NOTE: Did you know port 80 is the default HTTP port? Therefore </em><em>curl localhost automatically refers to </em><em>curl </em><a href="http://localhost:80."><em>http://localhost:80.</em></a></blockquote><p>But if we try to curl localhost from the host machine, it will fail:</p><pre># fails<br>curl localhost</pre><p>This is because we cannot reach the nginx container from the host, as the host and the container are using separate network namespaces (when using the default bridge network).</p><blockquote><em>The solution is </em>port mapping<em>.</em></blockquote><p>Let’s remove app1 and create it again using the <em>port mapping</em> -p <em>option:</em></p><pre>docker rm -f app1</pre><pre>docker run -d --name app1 -p 2000:80 nginx:alpine</pre><p>The port mapping option <em>(</em>-p 2000:80<em>)</em> instructs Docker to map port 2000 on the host to port 80 on the container.</p><p>Let’s check out results using curl:</p><pre># fails<br>curl localhost</pre><pre># works<br>curl localhost:2000</pre><pre># works<br>docker exec app1 curl localhost</pre><p>We’ll learn more about bridge drivers in the next part of this series.</p><p><strong>Example using </strong><strong>host driver</strong></p><p>As we’d learnt, when using the host driver, the network stack is the same for both the container and host, so there’s no need for port mapping. Let’s check it out.</p><blockquote><em>NOTE: you need a Linux machine to use the </em><em>host driver.</em></blockquote><p>We’ll run a similar nginx container named app2 using the host driver:</p><pre>docker run -d --name app2 --network host nginx:alpine</pre><p>Curling localhost will now work:</p><pre># works<br>curl localhost</pre><p>Can you guess why?</p><p>The answer will be clear if we…</p><p><strong>Check differences in IP configuration</strong></p><p>Let’s first look at IP addresses assigned to all network interfaces on the host machine:</p><pre>ip addr</pre><p>Note the number of interfaces and the associated IPs.</p><p>What happens if we execute the same command inside the app1 container (the one using the default bridge driver)?</p><pre>docker exec app1 ip addr</pre><p>We should certainly see differences between the configuration in the host machine and app1, since they are using different network namespaces.</p><p>Now let’s try that for app2 container (the one using the host driver):</p><pre>docker exec app2 ip addr</pre><p>You’ll notice that the network configuration is exactly the same as for the host machine.</p><p>This is a clear indication that host driver makes the container share the host machines network.</p><p>One consequence of using the host driver is…</p><p><strong>Port conflicts</strong></p><p>You cannot run multiple containers that bind to the same port using host driver.</p><p>To demonstrate this, we’ll try to run a very similar nginx container to app2, but named as app3:</p><pre>docker run -d --name app3 --network host nginx:alpine</pre><p>If we check the logs:</p><pre>docker logs -f app3</pre><p>We’ll notice that nginx failed to start because the port it tried to bind to (80) was already in use.</p><p>We can confirm that app3 exited:</p><pre>docker ps -a</pre><p><strong>Cleanup</strong></p><p>To end the hands-on lab, we’ll clean up the containers:</p><pre>docker rm -f app1 app2 app3</pre><p>Now that we have seen it in action, let’s learn…</p><h3>When to use the host driver? - possible use cases</h3><p>The following are some use cases where the host driver could be suitable.</p><ol><li><strong>When the highest network performance is required<br></strong>The host network driver provides the best network performance compared to the other drivers since it uses the network namespace of the host machine directly and does not require port-mapping / network address translation (NAT).</li><li><strong>When a single container needs to handle a large number of ports<br></strong>If our workload demands a container to handle a large number of ports, then it might be preferable to use the host network directly, instead of mapping each port to the host one by one.</li><li><strong>When network isolation is not required<br></strong>This can actually simplify our networking since we won’t need to bother with port mapping or NAT.</li></ol><p>Given its properties in mind, we should be aware of the…</p><h3>Limitations of the host driver</h3><ol><li><strong>Lack of network isolation<br></strong>As the container’s network is not virtualized using host, it may not provide the level of isolation required for many multi-container workloads.<br>Additionally, any networking configuration applied to the host machine will also be applied to the container. If the container is deployed in privileged mode, the container could reconfigure the host’s network stack as well. <br>This tight binding with the host machine could raise bugs or security issues.</li><li><strong>Port conflicts<br></strong>As we have seen, we cannot run multiple containers that use the same port when using the host driver.</li><li><strong>Only works on Linux machines<br></strong>The host driver is only supported on Linux, not on Docker Desktop for Mac or Windows.</li></ol><h3>Conclusion</h3><p>In this blog, we learnt about the host network driver in docker - what it is, how to use it, some possible use cases and its limitations.</p><p>By not providing network isolation, the host driver provides the best performance and simplicity. But its drawbacks are to be kept in mind when using the host driver in production.</p><p>I hope I could make things clearer for you, be it just a tiny bit.</p><p>In the next blog, we will learn about the bridge driver - the default network driver, that is likely used the most in development environments.</p><p>Thanks for making it so far! 👏</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=587f65499fda" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/the-host-network-driver-networking-in-docker-5-587f65499fda">The Host Network Driver | Networking in Docker #5</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The None Network Driver | Networking in Docker #4]]></title>
            <link>https://medium.com/techmormo/the-none-network-driver-networking-in-docker-4-4d37a3cca119?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d37a3cca119</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Sat, 12 Feb 2022 11:18:47 GMT</pubDate>
            <atom:updated>2022-10-24T10:42:54.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yOJxCtUbpoFewt1cgYOeMA.png" /></figure><h4>Learn what the None driver is, how it enables network isolation, how to use it, and possible use cases</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLmZMTQd_y9M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLmZMTQd_y9M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLmZMTQd_y9M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce9724226ad4dea653413c37ac09462f/href">https://medium.com/media/ce9724226ad4dea653413c37ac09462f/href</a></iframe><p>What is the none network driver in Docker and how can it help me run secure, network-isolated containers?</p><p>This blog will try to answer that as simply as possible.</p><h3>Introduction</h3><p>This blog is the fourth one in a series for Docker Networking.</p><ul><li><a href="https://www.techmormo.com/posts/docker-networking-1-why-is-networking-important/">blog #1 — <strong>Why is Networking important in Docker?</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-2-basics-of-networking/">blog #2 — <strong>Basics of Networking</strong></a></li><li><a href="https://techmormo.com/posts/docker-networking-3-drivers-overview/">blog #3 — <strong>Docker Network Drivers Overview</strong></a></li></ul><p>If you are looking to learn more about the basics of Docker, I’ll recommended checking out the <a href="https://www.techmormo.com/posts/docker-made-easy-1-what-is-docker/">Docker Made Easy</a> series.</p><p>Here’s the agenda for this blog:</p><ul><li>What is the none network driver?</li><li>How to use it?</li><li>When to use it? — possible use cases</li></ul><p>Let’s start with a quick refresher: <strong>what are network drivers?</strong></p><blockquote><em>Network drivers enable us to easily use multiple types of networks for containers and hide the complexity required for network implementations.</em></blockquote><p>So…</p><h3>What is the none network driver?</h3><blockquote><em>The </em><em>none driver simply disables networking for a container, making it isolated from other containers.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*9_uZzS-kfTFONBgo.png" /></figure><p>Within the container, only the loopback interface is created to enable inter-process-communication, by using the IP address 127.0.0.1 mapping to the name localhost.</p><p>But the absence of other network interfaces like eth0 means, neither can it reach external networks nor can external networks reach it.</p><p>This makes the none network driver very secure. But it also limits its usability, as we usually wish to enable communication between containers.</p><p>We’ll later look at some possible use cases for none.</p><p>For now, let’s learn…</p><h3>How to use the none network driver?</h3><p>First, we’ll run an interactive shell (sh) within an alpine Linux container named app1, without specifying a network:</p><pre>docker run -it --name app1 alpine sh</pre><p>NOTE: the -it flags connect your terminal’s input to the container’s one, giving you direct access to the shell running inside the container.</p><p>Docker uses the default bridge network driver if no driver is stated, which we will learn more about in an upcoming post.</p><p>But the important thing to note is that this container has access to the internet.</p><p>We can check that by pinging a web address like google.com:</p><pre>ping google.com</pre><p>or by running the apk update command:</p><pre>apk update</pre><p>They should work.</p><p>We can check the network interfaces and IP addresses by using:</p><pre>ip addr</pre><p>This shows detailed configurations for each network interface.</p><p>The two primary interfaces of interest are the loopback (having the familiar 127.0.0.1 address), and the ethernet interface (named eth0 or similar). The loopback allows processes within the container to communicate with each other, whereas, the ethernet interface within IP/inet address connects the container to a network.</p><p>NOTE: On some systems, additional tunnel interfaces (like tunl0) might show up; we can ignore them for now.</p><p>We can also check the presence of a route table that has a default route to a gateway:</p><pre>route</pre><p>All this was a way to confirm the presence of network connectivity. Don’t worry if you didn’t understand every single detail.</p><p>Okay.</p><p>Now let’s see how a container with the none driver behaves.</p><p>Let’s open up a new terminal tab/window and run a very similar container like before. This time we will specify the network to be none and name it app2.</p><pre>docker run -it --name app2 --network none alpine sh</pre><p>Trying to access the internet now shall fail — like pinging the google URL:</p><pre>ping google.com</pre><p>or apk update</p><pre>apk update</pre><p>If we try to ping localhost, it will surprisingly work:</p><pre>ping localhost</pre><p>This is because the loopback interface is present, as you can check with:</p><pre>ip addr</pre><p>But you will notice that there are no ethernet interfaces.</p><p>As well as no routes:</p><pre>route</pre><p>Thus, neither can app2 be reached from the outside nor vice versa.</p><p>The only way we can connect to app2 is by using the docker exec command, which is used to run a command inside a running container.</p><p>Open up a third terminal tab/window and run the following:</p><pre>docker exec app2 ip addr</pre><p>This will show the list of interfaces and IP addresses of app2 we had seen earlier.</p><p>If you want to start another interactive session, you can run another shell (sh) and use -it with exec:</p><pre>docker exec -it app2 sh</pre><p>To exit the shell, use ctrl+d or (control+d).</p><p>Once we are done playing around, we can clean up the containers using:</p><pre>docker rm -f app1 app2</pre><h3>When to use the none network driver? - possible use cases</h3><p>While I personally haven’t used the none driver in production much during the several years that I have been exposed to containers, it might still be useful for cases that require strict network isolation.</p><p>I could think of two niche use cases:</p><p>1. <strong>To run network-isolated applications that only perform file operations</strong></p><ul><li>This could be done by <a href="https://techmormo.com/posts/docker-made-easy-4-persistence-and-docker-volumes/">mounting volumes</a> to the container, which then, in turn, could perform operations after certain intervals or by detecting file change events. Some examples include using a container for generating database backups, processing log files, etc.</li></ul><p><strong>2. To run a one-off command which requires network-isolation</strong></p><ul><li>Sometimes it might be required to just perform computations and print logs in a secure, network-isolated environment. Examples include running ci/cd jobs that export produced artifact files or testing suspicious scripts that could contain malware, etc.</li></ul><p>According to the documentation, none may also be used in conjunction with a custom network driver.</p><p>Do you know of any other important use cases that I am missing? Please let me know as I’d love to add them here.</p><h3>Conclusion</h3><p>In this blog, we learnt about the none network driver in docker - what it is, how to use it, and some possible use cases.</p><p>By enabling network isolation, the none driver offers a secure environment for running processes. But it also limits its usability.</p><p>In the next blog, we will learn about the host driver - which provides the best network performance out of all 4 drivers! ⚡️</p><p>Thanks for making it so far! 👏</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d37a3cca119" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/the-none-network-driver-networking-in-docker-4-4d37a3cca119">The None Network Driver | Networking in Docker #4</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Network Drivers Overview | Networking in Docker #3]]></title>
            <link>https://medium.com/techmormo/docker-network-drivers-overview-networking-in-docker-3-78308e0839c9?source=rss-d437c4338d15------2</link>
            <guid isPermaLink="false">https://medium.com/p/78308e0839c9</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Farhim Ferdous]]></dc:creator>
            <pubDate>Mon, 10 Jan 2022 10:45:33 GMT</pubDate>
            <atom:updated>2022-10-24T10:42:46.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RCkaCKKkp3ClZaogUkYCw.png" /></figure><h4>Learn how Docker Network Drivers allow easy Container network configuration by implementing the Container Network Model</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvmgSIBzYoiE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvmgSIBzYoiE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvmgSIBzYoiE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/be5e494fb5560b288893356a0e2bcbc4/href">https://medium.com/media/be5e494fb5560b288893356a0e2bcbc4/href</a></iframe><p>What are Network Drivers in Docker? How do they enable easy network configuration for Containers?</p><p>This blog will try to answer that as simply as possible.</p><h3>Introduction</h3><p>This blog is the third one in a series for Docker Networking.</p><ul><li><a href="https://www.techmormo.com/posts/docker-networking-1-why-is-networking-important/">blog #1 — <strong>Why is Networking important in Docker?</strong></a></li><li><a href="https://www.techmormo.com/posts/docker-networking-2-basics-of-networking/">blog #2 — <strong>Basics of Networking</strong></a></li></ul><p>If you are looking to learn more about the basics of Docker, I’ll recommended checking out the <a href="https://www.techmormo.com/posts/docker-made-easy-1-what-is-docker/">Docker Made Easy</a> series.</p><p>Here’s what we will discuss today:</p><ul><li>The Container Network Model</li><li>Network Drivers: none, host, bridge &amp; overlay</li></ul><p>Okay.</p><p>Firstly, it’s good to know that networking in Docker is made possible by the…</p><h3>Container Network Model</h3><blockquote><strong>The Container Network Model</strong> (CNM) formalizes the steps required to provide networking for containers while providing an abstraction that can be used to support various types of networks.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nLE3V2rA26TY3T03.png" /></figure><p>CNM has 3 main components: Sandbox, Endpoint, and Network.</p><ol><li><strong>Sandbox</strong>: It contains the configuration of a container’s network stack, which means management of the container’s network interfaces, DNS settings, route tables, etc. A Sandbox may contain <em>many</em> endpoints from <em>multiple</em> Networks.</li><li><strong>Endpoint</strong>: It joins a Sandbox to a Network. An Endpoint can belong to only one Network and it can belong to only one Sandbox if connected.</li><li><strong>Network</strong>: It is formed by a group of Endpoints that are able to communicate with each other directly.</li></ol><p>You can think of the Container Network Model as an abstract class that defines the required interface, whereas <em>network drivers</em> correspond to concrete classes implementing the interface.</p><p>This is, of course, an oversimplification so feel free to learn more about the design of CNM <a href="https://github.com/moby/libnetwork/blob/master/docs/design.md">here</a>.</p><p>As users of Docker, instead of the detailed implementations of CNM, we should learn more about how to properly use…</p><h3>Network drivers</h3><blockquote>Network drivers are pluggable interfaces that provide the actual network implementations for Docker Containers.</blockquote><p>Docker comes with several drivers out-of-the-box that provide core networking functionality for many use cases — like service discovery, encryption, multi-host networking, etc.</p><p>Then there are 3rd party drivers (by plugin providers) available for special use cases.</p><p>Lastly, one can even build their own custom drivers if available ones don’t suffice (although that will rarely ever be required).</p><p>The 4 out-of-the-box network drivers are:</p><ol><li>none</li><li>host</li><li>bridge</li><li>overlay</li></ol><p>The driver can be specified by the --network option for the docker run command like this:</p><pre>docker run -d --network host nginx</pre><p>This command runs a nignx container using the host driver in the background (specified by the -d flag).</p><p>It’s interesting to note that a Container is generally unaware of the network driver it uses, except when using the none driver.</p><p>So, how do each of the drivers differ?</p><p>Reminder: a <strong>Docker host</strong> is a host/computer running the Docker daemon. You can learn more about Docker’s architecture <a href="https://techmormo.com/posts/docker-made-easy-1-what-is-docker/">here</a>.</p><h3>None Driver</h3><p>The none driver simply disables networking for a container, making it isolated from other containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*opWvPMNRmOTJRUoH.png" /></figure><h3>Host Driver</h3><p>When using the host driver, the container shares the network stack of the Docker host - appearing as if the container is the host itself, from a networking perspective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jPmF_LjcYZbQcWOU.png" /></figure><p>NOTE: the host driver is only supported on Linux as of now.</p><h3>Bridge driver</h3><p>The bridge driver creates an internal network within a single Docker host. containers placed within this network can communicate with each other but are isolated from containers, not on the internal network. bridge is the default driver when running single containers or when using docker-compose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NOmqNrnDb6i0cUO8.png" /></figure><h3>Overlay driver</h3><p>The overlay driver creates a distributed network that can span multiple Docker hosts, and therefore is the preferred driver for managing container communication within a multi-host cluster. overlay is the default driver for Docker swarm services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7i7Hc0ovoXUg0TQeBr66w.png" /></figure><h3>Conclusion</h3><p>Alright.</p><p>Today we briefly learnt about the Container Network Model and the main Network Drivers that Docker provides.</p><p>In the upcoming blogs of this series, we will explore each of the Drivers in more detail.</p><p>Being pluggable makes drivers highly extensible &amp; portable. As a result, they allow the use of various types of networks, and connect containers amongst themselves and with non-Docker workloads as needed.</p><p>I honestly find great joy when my fellow Engineers/Developers use Container technology effectively to build awesome things!</p><p>Thanks for making it so far! 🎉</p><p>See you at the next one.</p><p>Till then…</p><p>Be bold and keep learning.</p><p>But most importantly,</p><p>Tech care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78308e0839c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmormo/docker-network-drivers-overview-networking-in-docker-3-78308e0839c9">Docker Network Drivers Overview | Networking in Docker #3</a> was originally published in <a href="https://medium.com/techmormo">TechMormo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>