containerd安装

 

官网下载安装包

https://github.com/containerd/containerd/releases/tag/v1.3.0

containerd-1.3.0.linux-amd64.tar.gz

 

解压二进制包并生成默认文件

  tar -xvf containerd-1.3.0.linux-amd64.tar.gz -C /usr/local/
  mkdir /etc/containerd
  containerd config default> /etc/containerd/config.toml

生成的默认配置文件注意[grpc]的地址字段默认为/run/containerd/containerd.sock

配置文件其他参数含义参照github地址:https://github.com/containerd/containerd/blob/master/docs/man/containerd-config.toml.5.md

 

配置containerd服务

cat /usr/lib/systemd/system/containerd.service
[Unit]
Description=containerd container runtime
Documentation=https://containerd.io
After=network.target

[Service]
ExecStartPre=/sbin/modprobe overlay
ExecStart=/usr/local/bin/containerd
Delegate=yes
KillMode=process
LimitNOFILE=1048576
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNPROC=infinity
LimitCORE=infinity

[Install]
WantedBy=multi-user.target
 

启动服务

systemctl enable containerd
systemctl start containerd
systemctl status containerd
 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值