本文作者:丁辉
网络源安装Containerd
设置存储库
1
2yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo国内
1
2yum install -y yum-utils
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo安装
1
yum install -y containerd.io
备份配置文件
1
2mv /etc/containerd/config.toml /etc/containerd/config.toml.bak
containerd config default > /etc/containerd/config.toml修改驱动和镜像地址
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"配置 crictl 配置文件
1
curl -so /etc/crictl.yaml https://gitee.com/offends/Kubernetes/raw/main/Containerd/Files/crictl.yaml
启动
1
2
3systemctl enable containerd
systemctl start containerd
systemctl status containerd
I'm so cute. Please give me money.
- 本文链接: https://blog.offends.cn/Kubernetes/Containerd/Docs/网络源安装Containerd.html
- 版权声明: 本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。