Runtime 安装

triangle-exclamation

老环境卸载 Docker 命令

apt-get remove docker docker-client docker-common docker-latest \
               docker-latest-logrotate docker-logrotate \
               docker-engine docker-ce containerd -y

配置软件源并安装 containerd

# step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common

# step 2: 安装GPG证书
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

# Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

# Step 4: 更新并安装 containerd
sudo apt-get -y update
sudo apt-get -y install containerd.io

配置 Containerd 的内核模块

创建 Containerd 配置文件

添加自定义镜像源

重启 Containerd

Last updated