<?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 Muhammad Usama on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Usama on Medium]]></description>
        <link>https://medium.com/@somie.20?source=rss-9cec37fa6c90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MysUMqHo_cJSOYil</url>
            <title>Stories by Muhammad Usama on Medium</title>
            <link>https://medium.com/@somie.20?source=rss-9cec37fa6c90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:38:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@somie.20/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[Sigstore — Sign differently]]></title>
            <link>https://medium.com/@somie.20/sigstore-sign-differently-5d49e1f4e4b4?source=rss-9cec37fa6c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d49e1f4e4b4</guid>
            <dc:creator><![CDATA[Muhammad Usama]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 17:06:03 GMT</pubDate>
            <atom:updated>2022-12-01T17:06:03.486Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sigstore — Sign differently</h3><p>Technically speaking, these days codes have too many errors and bugs inside of them if developed using third-party libraries. I am sure you must have come across some scenario like this as well. This is because most of the libraries in different programming languages these days are either incomplete, unregistered, open to editing by professionals who do not possess much experience or simply not signed by some higher authority.</p><p>To eliminate such use cases, code signing certificates are used. Code Signing Certificates are used by software developers to digitally sign applications, drivers, executables and software programs as a way for end-users to verify that the code they receive has not been altered or compromised by a third party.</p><p>To help ease the process, Bob Callaway and his team has developed a state of the art all in one package, that helps empower software developers to securely sign software artifacts such as release files, container images, binaries, bill of material manifests which are later stored in a tamper-resistant public log called the <strong>Sigstore.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uHbZu0mUpvn99q66" /></figure><p><strong>The article covers the following topics:</strong></p><ul><li>The need for Code Signing?</li><li>What is Sigstore?</li><li>How does Sigstore work?</li><li>Sigstore — Trusted Model</li><li>What does Sigstore not guarantee?</li><li>What is next for Sigstore?</li></ul><p>Before exploring what sigstore is, let’s first dive into what code signing is and how it is changing the dynamics of cloud computing in today’s era.</p><p><strong>What is the need for Code Signing?</strong></p><p>Code signing is the process of digitally signing executables and scripts to confirm the identity of the software publisher and guarantee that the code has not been altered or corrupted since it was signed. This ensures that the provider is authentic and the code’s integrity cannot be questioned at any stage.</p><p>How is it done? Publicly trusted certification authorities (CAs) confirm signers’ identities and bind their public key to a code signing certificate. The certificate is used to support validation of code signatures to a trusted root certificate in widely distributed applications such as Windows, Java and Linux. CAs and browsers have developed standards to manage and issue code signing certificates. The standards ensure applications are verified and code signing specifications meet the latest cryptographic requirements. These requirements meet high standards of the market industry and can be relied upon.</p><p><strong>What is Sigstore?</strong></p><p>Sigstore enables program developers to safely sign programming antiques, for example, coding artifacts, code pictures, parallels, bill of material manifests and that’s just the beginning.</p><p>It’s allowed to be used for all engineers and code developers, with Sigstore’s code and functional tooling being 100 percent open source, everything is checked up and kept securely under the Sigstore’s people community.</p><p>Sigstore combines several different technologies that focus on automatic key management and transparency logs. They can be used independently or as one single process, and together they create a safer chain of custody tracing software back to the source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5mFT6Hqp6hfRn-gD" /></figure><p><strong>How does Sigstore work?</strong></p><p>Sigstore uses 4 different technologies and combines the products up into one single module.</p><p>They are stated as under:</p><ul><li>Cosign (container signing, verification and storage)</li><li>Fulcio (root certificate authority)</li><li>Rekor (transparency log)</li><li>OpenID Connect (means of authentication)</li></ul><p>Using Fulcio, Sigstore requests a certificate from our root Certificate Authority (CA). This checks if you’re one valid personality as you say you are using OpenID Connect, which looks at your email address to prove you’re the author. Fulcio grants a time-stamped certificate, a way to say you’re signed in and that it’s you. You don’t have to do anything with keys yourself, and Sigstore never obtains your private key.</p><p>The public key that Cosign creates gets bound to your certificate, and the signing details get stored in Sigstore’s trust root, the deeper layer of keys and trustees and what we use to check authenticity. Your certificate then comes back to Sigstore, where Sigstore exchanges keys, asserts your identity and signs everything off. The signature contains the hash itself, public key, signature content and the time stamp.</p><p>This all gets uploaded to a Rekor transparency log, so anyone can check that what you’ve put out there went through all the checks needed to be authentic. In the end, using the policy controller which is an admission controller for Kubernetes for enforcing policy on containers allowed to run, these changes are executed on the Kubernetes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zNJgGaSyLLaTPqY_" /></figure><p><strong>Sigstore — Trusted Model</strong></p><ol><li>End users can leverage Fulcio’s short-lived code signing certificates and Rekor’s transparency log to confirm that an artifact was signed while the certificate was valid. When a signature is stored in the log, the associated entry is included into the log with a signed timestamp.</li><li>End users can request the entry, cryptographically verify the timestamp is correct, and verify that an artifact was signed while the certificate was valid. Storing the signature in a transparency log also makes certificates easily discoverable so that maintainers don’t have to worry about public key distribution.</li></ol><p>Sigstore clients like Cosign can also eliminate the key management problem by using ephemeral keys.</p><p>These ephemeral keys only exist in memory; the private key never hits disk and is never known by Sigstore services.</p><p>Cosign for them will:</p><ul><li>Generate an ephemeral public/private keypair in memory</li><li>Bind the public key to a short-lived certificate requested from Fulcio</li><li>Sign an artifact with the ephemeral private key while the certificate is still valid</li><li>Store the signature and certificate in Rekor as proof the artifact was signed while the certificate was valid Clients like Cosign only need to find the correct Rekor entry to verify the artifact</li></ul><p><strong>What does Sigstore not guarantee?</strong></p><ul><li>If an OIDC identity or OIDC provider is compromised, Fulcio might issue unauthorized certificates. However, these certificates are useless unless they are published to the certificate transparency log, so such compromise can be detected.</li><li>If Fulcio is compromised, it might issue unauthorized certificates. However, like before, these should be detectable.</li><li>If no third parties monitor the logs, then any misbehavior by Rekor and Fulcio might go undetected.</li></ul><p><strong>What is next for Sigstore?</strong></p><p>Recently, the sigstore community has grown to 30 contributors from across 10 different organizations, with 250 people in their Slack instance!</p><p>Sigstore developers recently started working on integrating cosign working into the release process of a few other important container images from outside the sigstore project.</p><p>Moreover, they are also working on support for Yubikeys and other hardware keys, more build system and KMS integrations, and as well as figuring out our plans to move the other sigstore services out of experimental.</p><p>Sigstore is growing by expanding their tooling support across the sigstore project with other signing tools designed for different language ecosystems as they are just getting started on <a href="https://github.com/sigstore/sigstore-maven-plugin">maven</a> and <a href="https://github.com/sigstore/">ruby plugins</a>, as well as an overall <a href="http://github.com/sigstore/sigstore">sigstore</a> “kitchen sink” signing tool.</p><p><strong>Repo:</strong> <a href="https://github.com/sigstore/docs">sigstore/docs: Sigstore documentation (github.com)</a></p><p><strong>References:</strong></p><p><a href="https://blog.sigstore.dev/whats-next-for-sigstore-1969e7321f75">What’s Next for Sigstore?. Project Update March 2021 — Building… | by Dan Lorenc | sigstore</a></p><p><a href="https://docs.sigstore.dev/faq">Frequently asked questions — sigstore documentation</a></p><p><a href="https://www.sigstore.dev/how-it-works">How sigstore works · Sigstore</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d49e1f4e4b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform…]]></title>
            <link>https://medium.com/@somie.20/amazon-web-services-aws-is-the-worlds-most-comprehensive-and-broadly-adopted-cloud-platform-f2b327f026b2?source=rss-9cec37fa6c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2b327f026b2</guid>
            <dc:creator><![CDATA[Muhammad Usama]]></dc:creator>
            <pubDate>Wed, 30 Nov 2022 16:33:43 GMT</pubDate>
            <atom:updated>2022-11-30T16:33:43.202Z</atom:updated>
            <content:encoded><![CDATA[<h3>Finch: An Open-Source Client for Container Development</h3><p>Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully featured services from data centers globally.</p><p>Since its inception, Amazon Web Services (AWS) has been the best place for customers to build and run open-source software in the cloud. AWS is proud to support open-source projects, foundations, and partners.</p><p>Following these high standards, Amazon Web Services (AWS) has recently released a new open-source client for container development called <strong>Finch</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AR5isSeFC3RT3Kq3" /></figure><p>The article covers the following topics:</p><ul><li>What is container development?</li><li>What is Finch?</li><li>Why develop Finch?</li><li>What can Finch do?</li><li>Getting started with Finch on MacOS</li><li>What is next for Finch?</li></ul><p>Before understanding what Finch is, let’s first dive into what container development is and how it is changing the dynamics of cloud computing in today’s era.</p><p><strong>What is container development?</strong></p><p>If you have ever run into compatibility issues when running someone else’s code or been unable to work with a specific GitHub repository because you do not have the required dependencies, then a container is exactly what you need. It is basically a full-fledged unit of software that combines all of the code and required dependencies into one neat little package so that it may work reliably on any OS and environment, independent of the system itself. It is similar to a virtual machine in the tasks that it does, but it is a much better alternative due to its smaller hardware utilization (as it does not include operating system images) and its increased simplicity in the whole development process in DevOps.</p><p>Container development helps users in the separation of responsibilities, workload portability, and application isolation to logically test and deploy applications without the need for physical working infrastructure.</p><p>Containers are defined as follows:</p><p>“A container is a standard unit of software that packages up code and all its dependencies, so the application runs quickly and reliably from one computing environment to another.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/0*i6M5Ol8r2Yg9C2RL" /></figure><p><strong>What is Finch?</strong></p><p>Finch is another command line client for building, running, and distributing Linux containers. It accommodates the development of a local macOS client, alongside an organized arrangement of de facto standard open-source components including <a href="https://github.com/lima-vm/lima/">Lima</a>, <a href="https://github.com/containerd/nerdctl">nerdctl</a>, <a href="https://containerd.io/">containerd</a>, and <a href="https://github.com/moby/buildkit">BuildKit</a>.</p><p>With Finch, you can make and run containers locally, and assemble and distribute Open Compartment Drive (<a href="https://www.oracle.com/cloud/">OCI</a>) compartment pictures. Finch is currently in its early stages of maturing and only targets development on all macOS platforms. Finch is currently licensed under the Apache 2.0 license and is free for anyone to use.</p><p>Developers at Amazon think Finch can evolve better in the future with more robust and revolutionary ideas that contribute queries to this open-source client. They also tend to accept all pull requests at the moment contributing to the major success of Finch in the coming times. They also plan to provide Finch support for windows and Linux operating systems at the earliest.</p><p>In particular, Justin Cormack, CTO of Docker shared that</p><p>“We’re bullish about Finch’s adoption of containerd and BuildKit, and we look forward to AWS working with us on upstream contributions.”</p><p><strong>Why develop Finch?</strong></p><p>There are already available commercial products as well as a variety of specifically designed open-source projects for creating and executing Linux containers on non-Linux hosts. While some businesses may be able to put up a straightforward command line tool using pre-existing open-source components, the majority of businesses prefer that their developers concentrate on creating applications rather than tools.</p><p>Recent developments in Lima have caught the attention of developers at Amazon. Lima which was recently included in the Cloud Native Computing Foundation (CNCF) as a sandbox project plans to encourage containerd and nerdctl to MacOS users around the globe. Thus, instead of creating a new stand-alone plugin, Finch integrated with Lima shall provide vast development of projects making the CNCF community grow to new heights.</p><p>With Finch’s native macOS client, Finch serves as nerdctl’s passthrough to the virtual machine being managed by Lima. You don’t have to worry about managing dependent updates and patches because Finch manages and installs all necessary open-source components and their dependencies. Finch shall also provide the flexibility to downstream customers to customize and build their own extensions for different use cases matching their needs.</p><p>Finch being an open source clientprovides much attraction for new developers to get started with their custom-motivated container client development. Finch intends to offer a minimal and basic build/run/push/pull experience that is concentrated on essential workflow operations.</p><p><strong>What can Finch do?</strong></p><p>With Finch you can:</p><ul><li>Pull images from registries</li><li>Run containers locally</li><li>Build images using your existing Dockerfiles</li></ul><p>Finch also enables you to develop and run images for either amd64 or arm64 architectures using emulation.</p><p><strong>Getting started with Finch on MacOs</strong></p><p>1. Prerequisites</p><ul><li>macOS Catalina (10.15) or higher</li><li>Intel or Apple Silicon M1 system for macOS</li><li>Recommended configuration is 2 CPU, 4 GB memory</li></ul><p>2. Installing Finch</p><p>Download a release package for your architecture from the project’s GitHub releases page, and once downloaded double click and follow the directions.</p><p>Once the installation is complete,<strong> finch vm init</strong> is required once to set up the underlying system. To start the Finch environment, use<strong> finch vm start </strong>command.</p><blockquote>finch vm init</blockquote><blockquote>INFO[0000] Initializing and starting Finch virtual machine…</blockquote><blockquote>..</blockquote><blockquote>INFO[0067] Finch virtual machine started successfully</blockquote><p>You can now run a test container. If you’re familiar with container development, you can use the <strong>run </strong>command as you’d expect.</p><blockquote>finch run — rm public.ecr.aws/finch/hello-finch</blockquote><p>Finch makes it easy to build and run containers across architectures with the — platform option. When used with the run command, it will create a container using the specified architecture. For example, on an Apple Silicon M1 system, — platform=amd64 will create a container and run processes within it using an x86–64 architecture.</p><blockquote>uname -ms</blockquote><blockquote>Darwin arm64</blockquote><blockquote>finch run — rm — platform=amd64 public.ecr.aws/amazonlinux/amazonlinux uname -ms</blockquote><blockquote>Linux x86_64</blockquote><p>You can also use the — platform option with builds, making creating multi-platform images easy.</p><p>You can also view the finch.yaml file <a href="https://github.com/runfinch/finch/blob/main/finch.yaml">here </a>to study new configurations and cloud amendments made.</p><p><strong>What is next for Finch?</strong></p><p>Finch, being in its early stages of development welcomes all constructive criticism and pull requests to help improve the client’s functionality. Finch plans to provide support for windows and Linux clients and promises continued support around the clock for new users.</p><p>Developers at Amazon plan to provide:</p><ul><li>More minimal guest OS footprint</li><li>Formal extensibility</li><li>Continued performance improvement</li><li>Stability and usability improvement</li></ul><p><strong>Summary:</strong></p><p>To conclude, Finch is a versatile and well-supported open-source container development client solution for easy building, testing, and deployment of projects in DevOps, however it is not a one size fits all solution.</p><p>Open-source contributions from users around the globe can help Finch achieve greater heights as more and more container solutions pour in.</p><p>If our goal is to for example deploy machine learning and AI applications into enterprises, these applications are very resource heavy and will favor VMS. If all works well, Finch can definitely be a winning solution for cloud-native communities around the world.</p><p><strong>References:</strong></p><p><a href="https://aws.amazon.com/blogs/opensource/introducing-finch-an-open-source-client-for-container-development/#:~:text=Finch%20is%20a%20new%20command,nerdctl%2C%20containerd%2C%20and%20BuildKit."><strong>Introducing Finch: An Open Source Client for Container Development | AWS Open Source Blog (amazon.com)</strong></a></p><p><a href="https://github.com/runfinch/finch"><strong>GitHub — runfinch/finch: The Finch CLI an open source client for container development</strong></a></p><p><a href="https://github.com/lima-vm/lima/"><strong>GitHub — lima-vm/lima: Linux virtual machines, typically on macOS, for running containerd</strong></a></p><p><a href="https://cloud-native.slack.com/?redir=%2Farchives%2FC04ANHJPA22"><strong>Slack</strong></a><strong> channel for finch community</strong></p><p><a href="https://github.com/runfinch/finch/releases"><strong>Releases · runfinch/finch (github.com)</strong></a></p><p><a href="https://medium.com/@somie.20/containerd-for-your-compatibility-b0dd2c0e7aa0"><strong>Containerd for your Compatibility | by Muhammad Usama | Medium</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2b327f026b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Containerd for your Compatibility]]></title>
            <link>https://medium.com/@somie.20/containerd-for-your-compatibility-b0dd2c0e7aa0?source=rss-9cec37fa6c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0dd2c0e7aa0</guid>
            <category><![CDATA[containerd]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Muhammad Usama]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 13:57:58 GMT</pubDate>
            <atom:updated>2022-09-21T05:26:35.189Z</atom:updated>
            <content:encoded><![CDATA[<p>An introduction to one of the most popular container runtime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*9X3wV2GHINwkxz8uciAGJw.png" /><figcaption><a href="https://containerd.io/">containerd — An industry-standard container runtime with an emphasis on simplicity, robustness and portability</a></figcaption></figure><h4>The article covers the following topics:</h4><ul><li>What is a Container?</li><li>What is Conatinerd?</li><li>History of Containerd</li><li>Why do we need Containerd?</li><li>Architecture of Containerd</li><li>Is Containerd OS Specific?</li><li>When to use Containerd versus a Virtual Machine?</li></ul><p>Before understanding what Containerd is, how it started, why we need it, we must understand what a container is.</p><h4><strong>What is a Container?</strong></h4><p>If you have ever run into compatibility issues when running someone else’s code or been unable to work with a specific github repository because you do not have the required dependencies, then a container is exactly what you need. It is basically a full-fledged unit of software that combines all of the code and required dependencies into one neat little package so that it may work reliably on any OS and environment, independent of the system itself. It is similar to a virtual machine in the tasks that it does, but it is a much better alternative due to its smaller hardware utilization (as it does not include operating system images) and its increased simplicity in the whole development process in DevOps.</p><p>Containers are defined as the follows:</p><p>“A container is a standard unit of software that packages up code and all its dependencies, so the application runs quickly and reliably from one computing environment to another.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/0*RXMpY9owbxCE30_d" /><figcaption><a href="https://www.bing.com/images/search?view=detailV2&amp;ccid=FK8raneq&amp;id=6201EA6F31358CC379552BD8C12832602214E710&amp;thid=OIP.FK8raneq0hx0j64eIEwCiAHaEz&amp;mediaurl=https%3a%2f%2fwww.notion.so%2fimage%2fhttps%3a%252F%252Fs3-us-west-2.amazonaws.com%252Fsecure.notion-static.com%252F392dc12a-fa76-43d5-8051-c68df1b42492%252FVM_Image.png%3ftable%3dblock%26id%3d3f5c4513-5204-41e7-8a72-33461122cb79%26width%3d2050%26userId%3d%26cache%3dv2&amp;cdnurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.14af2b6a77aad21c748fae1e204c0288%3frik%3dEOcUImAyKMHYKw%26pid%3dImgRaw%26r%3d0&amp;exph=618&amp;expw=952&amp;q=virtual+machine+vs+containers&amp;simid=608025828943021188&amp;FORM=IRPRST&amp;ck=53447A1C84EFFBA877023776C23CA283&amp;selectedIndex=2&amp;ajaxhist=0&amp;ajaxserp=0">virtual machine vs containers — Search (bing.com)</a></figcaption></figure><h4><strong>What is Containerd:</strong></h4><p>Now that we understand what a container is, let’s begin our discussion about <a href="https://containerd.io/">Containerd</a>. Simply put, it is a container runtime. A container runtime is essentially a component that mounts the container and interacts with the OS Kernel to begin the ‘containerization process’.</p><p>“Containerization is the packaging together of software code with all its necessary components like libraries, frameworks, and other dependencies so that they are isolated in their own container”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*BUHg0E2JJ9aQpkIZ" /><figcaption><a href="https://www.bing.com/images/search?view=detailV2&amp;ccid=LBdFUQds&amp;id=E6D9F17BA12599FFCB3336DEB6D469A966516093&amp;thid=OIP.LBdFUQds70xHXwvo4ipPTQHaEK&amp;mediaurl=https%3a%2f%2fsweetcode.io%2fwp-content%2fuploads%2f2017%2f02%2fpasted-image-0.png&amp;cdnurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.2c174551076cef4c475f0be8e22a4f4d%3frik%3dk2BRZqlp1LbeNg%26pid%3dImgRaw%26r%3d0&amp;exph=636&amp;expw=1130&amp;q=architecture+of+containerd&amp;simid=608022444500141931&amp;FORM=IRPRST&amp;ck=19139E6A6E2125D2AA454CB7D893120F&amp;selectedIndex=7&amp;ajaxhist=0&amp;ajaxserp=0">architecture of containerd — Search (bing.com)</a></figcaption></figure><p>Containerd can be considered the middleman that runs below platforms such as Docker and Kubernetes, and runs above virtualization technologies such as runc, gVisor, and Firecracker. Containerd is an example of a resource manager that deals with artifacts that you would need to start a container. Its primary workings include talking to a registry, pulling the manifest, getting the configuration and the layers, unpacking, to name a few. Containerd supports several file systems. Containerd works by pulling in an image that needs to turn into a file system snapshot that can be used by the driver that you are using. All these resources mentioned, have metadata and dependencies, and containerd handles these for you.</p><p>It is open-source software present on GitHub that has 250 contributors and supports linux and windows and many other architectures (which we will discuss moving forward).</p><h4><strong>History of Conainterd:</strong></h4><p>Containerd was initially built up alongside Docker as a process supervisor that sat between the full docker runtime and runc, basically acting as a middle layer of abstraction between the two. Over the years, it has evolved from a simple container supervisor to a full-fledged runtime. While it does share ideas with Docker, the goal was to create a new codebase to come up with a cleaner API and better separation for the management of containers and images. Today conatinerd has registry interaction, container lifecycle management and more.</p><h4><strong>Why do we need Containerd:</strong></h4><p>Containerd is the most stable, best supported runtime for Kubernetes and most major cloud providers. For development, Docker and buildkit are highly integrated with containerd and use it to run containers and runtimes. Containerd is also the most memory efficient and stable, and it is being used in projects such as FAASD and IBM Cloud Functions for their kubernete offerings.</p><p>Containerd is an extremely stable runtime. For usage in processes, such as daemon and kubernetes, containerd ensures that those processes do not crash, and no data ever lost. It uses a very low amount of runtime resources, with a small container overhead and CPU usage. Finally, all files used by the system are accounted for and cleaned up by the garbage collector which means there are no leaking image artifacts or runaway processes.</p><h4><strong>Architecture of Containerd:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xrwaFKxCBXZ1iQEu" /><figcaption><a href="https://www.bing.com/images/search?view=detailV2&amp;ccid=5FxzkGdd&amp;id=EC5E415D72E23745A8A187C83DD6CFFCBB6F9782&amp;thid=OIP.5FxzkGddVGtYsCPxgvIBDQHaEf&amp;mediaurl=https%3a%2f%2fcontainerd.io%2fimg%2farchitecture.png&amp;cdnurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.e45c7390675d546b58b023f182f2010d%3frik%3dgpdvu%252fzP1j3Ihw%26pid%3dImgRaw%26r%3d0&amp;exph=1080&amp;expw=1782&amp;q=architecture+of+containerd&amp;simid=608048691052964706&amp;FORM=IRPRST&amp;ck=0E913360EC700FF2321B221DFAF226AA&amp;selectedIndex=0&amp;ajaxhist=0&amp;ajaxserp=0">architecture of containerd — Search (bing.com)</a></figcaption></figure><p>As a user of contained, the client is the first place as a user you will interact with, if you are building a system on top of containerd, the client is what you will be working with. Some of the core functionality that is associated with container runtime is implemented in the client. An example of this would be container management. Which prepares the container snapshots as well as starting individual container tasks. Image pulling is also completely implemented inside the client.</p><h4><strong>Is Containerd OS Specific?</strong></h4><p>Containerd is OS specific, or more accurately it is architecture specific so a containerd made in windows should technically not run on Linux, however due to the fact that Linux, Mac OS X (excluding the new M1 and M2 series), and Windows all run on x86 architecture, the containers will work due to the fact that it is a “simulated” cross platform.</p><h4><strong>When to use Containerd versus a Virtual Machine?</strong></h4><p><strong>Virtual Machines:</strong></p><ul><li>They have been used for a long time, so a huge set of VM management and security tools are available which means that they are more well supported.</li><li>If we need to run multiple applications on a specific OS, multiple containers will have to be made, whilst on a VM one container will run all of the applications.</li><li>VMs emulate an entire OS environment, which is better for runtime tests and resource usage tests.</li></ul><p><strong>Containerd:</strong></p><ul><li>Contianerd is more lightweight than VMS, by an order of magnitude of almost 103 which allow for more efficient usage of storage resources</li><li>Containers are much faster, and they boot up in milliseconds as compared to VMs which take a long time to boot up and are much slower.</li><li>A single system cannot host many VMs at the same time as they are simulating a complete OS environment, whilst many containers can be run on the same system.</li></ul><h3>Summary and Key takeaways:</h3><p>To conclude, Containerd is a versatile and well supported containerization solution for easy building, testing, and deployment of projects in DevOps, however it is not a one size fits all solution. Whether or not VMs will be better suited than Containerd is entirely up to our usage. If our goal is to for example deploy machine learning and AI applications into enterprises, these applications are very resource heavy and will favor VMS. However, if the goal is to deploy consumer side applications that require speed and scalability, Containerd is the clear winner.</p><p>Some key points for Containerd are:</p><ul><li>Near instantaneous start-up time</li><li>Very nature of Containerd makes transient between hardware setups.</li><li>Makes it possible to create a snapshot of a filesystem to use in a container</li><li>Contains a client library that can run on both local or cloud systems</li><li>Subset of the original Docker system that has grown into a full fledge software with enough capabilities to be used on its own.</li><li>A powerful containerization software that manages the lifecycle of a container, a daemon process that creates, starts, stops, and destroys conatiners, is definitely a beloved within the CNCF (Cloud Native Computing Foundation) and Cloud Native communities.</li></ul><p><strong>References:</strong></p><p><a href="https://containerd.io/">containerd — An industry-standard container runtime with an emphasis on simplicity, robustness and portability</a></p><p><a href="https://www.aquasec.com/cloud-native-academy/container-platforms/containerd/">What is containerd? (aquasec.com)</a></p><p><a href="https://medium.com/@saifsadiq.ss/kaniko-dethroning-docker-3f142bb07dc8">Kaniko Dethroning Docker?. For the past couple of weeks, I have… | by Saif Sadiq | Sep, 2022 | Medium</a></p><p><strong>Learning Resources:</strong></p><p><a href="https://www.youtube.com/channel/UC7B9fl8jQ8TEdOCypF4g3Wg">The CLOUDNATIVEFM With SAIM</a></p><p><a href="https://github.com/containerd/containerd">containerd/containerd: An open and reliable container runtime (github.com)</a></p><p><a href="https://www.aquasec.com/cloud-native-academy/container-platforms/containerd/">What is containerd? (aquasec.com)</a></p><p><a href="https://kubernetes.io/docs/setup/production-environment/container-runtimes/">Container Runtimes | Kubernetes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0dd2c0e7aa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>