# Installing and Configuring containerd as a Kubernetes Container Runtime

DevFeed: [Installing and Configuring containerd as a Kubernetes Container Runtime](<https://devfeed.tech/articles/installing-and-configuring-containerd-as-a-kubernetes-container-runtime-17538.md>)

Original publisher: [Read original article](<https://www.nocentino.com/posts/2021-12-27-installing-and-configuring-containerd-as-a-kubernetes-container-runtime/>)

Author: Anthony Nocentino

Published: 2024-04-29T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kubernetes on Anthony Nocentino's Blog](<https://devfeed.tech/sources/kubernetes-on-anthony-nocentino-s-blog.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [container-images](<https://devfeed.tech/tags/container-images.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>)

## AI overview

A tutorial on installing and configuring containerd as a Kubernetes container runtime, including setting the runc cgroup driver to systemd. It also explains Docker's deprecation as a Kubernetes runtime and provides Ubuntu installation steps.

## Source excerpt

This post shows you how to install containerd as the container runtime in a Kubernetes cluster. I will also cover setting the cgroup driver for containerd to systemd, which is the preferred cgroup driver for Kubernetes. In Kubernetes version 1.20 Docker was deprecated as a container runtime in a Kubernetes cluster and support was removed in 1.22. Kubernetes 1.26 requires that you use a runtime that conforms with the Container Runtime Interface (CRI). containerd is a CRI-compatible container runtime and is one of the supported options you have as a container runtime in this post-Docker/Kubernetes world. To be clear, you use container images created with Docker in containerd. containerd will start and run the container in your Kubernetes cluster. This post was previously published in February 2021. This is an updated version with the latest installation and configuration steps.