banner
NEWS LETTER

安装文档

Scroll down

本文作者:丁辉

Github安装文档

Containerd软件包 Runc软件包 Cni插件包

网络源安装

  1. 设置存储库

    阿里源配置文件

    1
    2
    yum install -y yum-utils
    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

    国内

    1
    2
    yum install -y yum-utils
    yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
  2. 安装

    1
    yum install -y containerd.io
  3. 备份配置文件

    1
    2
    mv /etc/containerd/config.toml /etc/containerd/config.toml.bak
    containerd config default > /etc/containerd/config.toml
  4. 修改驱动和镜像地址

    1
    vi /etc/containerd/config.toml

    内容如下

    1
    2
    3
    4
    5
    6
    7
    [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
    ...
    [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
    SystemdCgroup = true #修改这里

    [plugins."io.containerd.grpc.v1.cri"]
    sandbox_image = "registry.aliyuncs.com/google_containers/pause:3.9"
  5. 配置 crictl 配置文件

    1
    curl -so /etc/crictl.yaml https://gitee.com/offends/Kubernetes/raw/main/Containerd/Files/crictl.yaml
  6. 启动

    1
    2
    3
    systemctl enable containerd
    systemctl start containerd
    systemctl status containerd

I'm so cute. Please give me money.

其他文章
cover
二进制安装
  • 70/01/01
  • 00:00
  • Kubernetes-Containerd
cover
网络源安装Containerd
  • 70/01/01
  • 00:00
  • Kubernetes-Containerd
目录导航 置顶
  1. 1. 网络源安装
请输入关键词进行搜索