美文网首页
Containerd安装

Containerd安装

作者: 袁先生的笔记 | 来源:发表于2024-03-28 10:21 被阅读0次

    Ubuntu

    安装

    • 准备工作和Docker相似,参见此处

    • 安装

    sudo apt-get update
    sudo apt-get install containerd.io
    
    • 启动
    systemctl enable containerd
    systemctl status containerd
    

    配置

    • 生成默认配置
    containerd config default > /etc/containerd/config.toml
    
    • 修改CgroupDriver为systemd
      k8s官方推荐使用systemd类型的CgroupDriver
    vim /etc/containerd/config.toml
    
    ...
    SystemdCgroup = true
    
    • 重启
    systemctl restart containerd
    

    相关文章

      网友评论

          本文标题:Containerd安装

          本文链接:https://www.haomeiwen.com/subject/nqeutjtx.html