1-2 containerd的安装与使用

前言

containerd是从docker中分离出来的一个项目。作为一个底层容器运行时,使用containerd不仅性能提高了(调用链变短了),而且资源占用也会变小。因此它成了Kubernete容器运行时更好的选择。本文将介绍containerd的安装与使用。



本机使用Ubuntu 20.04对containerd进行安装:

root@ubuntu:~# cat /etc/issue
Ubuntu 20.04 LTS \n \l

查看containerd有那些可用版本:

root@ubuntu:~# apt-cache madison containerd
containerd | 1.5.9-0ubuntu1~20.04.4 | http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
containerd | 1.3.3-0ubuntu2 | http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

安装containerd,会自动下载依赖runc:

root@ubuntu:~# apt install -y containerd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  runc
The following NEW packages will be installed:
  containerd runc
0 upgraded, 2 newly installed, 0

你可能感兴趣的:(云原生,ubuntu,运维,云原生,kubernetes)