首页 > 其他分享 >containerd 安装

containerd 安装

时间:2022-10-11 13:22:44浏览次数:68  
标签:bin containerd runc version com 安装 cni

仓库安装

root@wgs:~# apt update
root@wgs:~# apt -y install containerd
root@wgs:~# systemctl status containerd

二进制安装

安装containerd

下载containerd

下载地址:https://github.com/containerd/containerd/releases

~# export version=1.6.8
~# wget https://github.com/containerd/containerd/releases/download/v${version}/containerd-${version}-linux-amd64.tar.gz

解压containerd

~# tar Cxzvf /usr/local containerd-${version}-linux-amd64.tar.gz
bin/
bin/containerd-shim-runc-v2
bin/containerd-shim
bin/ctr
bin/containerd-shim-runc-v1
bin/containerd
bin/containerd-stress

systemd

 https://raw.githubusercontent.com/containerd/containerd/main/containerd.service

/usr/local/lib/systemd/system/containerd.service

[Unit]
Description=containerd container runtime
Documentation=https://containerd.io
After=network.target local-fs.target

[Service]
#uncomment to enable the experimental sbservice (sandboxed) version of containerd/cri integration
#Environment="ENABLE_CRI_SANDBOXES=sandboxed"
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/containerd

Type=notify
Delegate=yes
KillMode=process
Restart=always
RestartSec=5
# 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
LimitNOFILE=infinity
# Comment TasksMax if your systemd version does not supports it.
# Only systemd 226 and above support this version.
TasksMax=infinity
OOMScoreAdjust=-999

[Install]
WantedBy=multi-user.target

启动服务

~# systemctl daemon-reload
~# systemctl enable --now containerd

安装runc

下载地址:https://github.com/opencontainers/runc/releases

~# export runc_version=v1.1.4
~# wget https://github.com/opencontainers/runc/releases/download/${runc_version}/runc.amd64
~# install -m 755 runc.amd64 /usr/local/sbin/runc

安装 CNI plugins

下载cni-plugins

 下载地址:https://github.com/containernetworking/plugins/releases

~# export cni_version=v1.1.1
~# wget https://github.com/containernetworking/plugins/releases/download/${cni_version}/cni-plugins-linux-amd64-${cni_version}.tgz

解压cni-plugins

~# mkdir -p /opt/cni/bin
~# tar Cxzvf /opt/cni/bin cni-plugins-linux-amd64-${cni_version}.tgz
./
./macvlan
./static
./vlan
./portmap
./host-local
./vrf
./bridge
./tuning
./firewall
./host-device
./sbr
./loopback
./dhcp
./ptp
./ipvlan
./bandwidth

查看containerd版本

~# containerd --version
containerd github.com/containerd/containerd v1.6.8 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
~# ctr version
Client:
  Version:  v1.6.8
  Revision: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
  Go version: go1.17.13

Server:
  Version:  v1.6.8
  Revision: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
  UUID: 09fb31c5-01cc-42fa-a1ea-1006056d2976

参考文档

https://github.com/containerd/containerd/blob/main/docs/getting-started.md

 

标签:bin,containerd,runc,version,com,安装,cni
From: https://www.cnblogs.com/wangguishe/p/16697557.html

相关文章

  • 安装 Metrics server
    安装MetricsserverMetricsServer是Kubernetes内置自动缩放管道的可扩展、高效的容器资源指标来源。MetricsServer从Kubelets收集资源指标,并通过MetricsAPI在K......
  • 二进制安装Kubernetes(k8s)IPv4/IPv6双栈 v1.24.0
    二进制安装Kubernetes(k8s)v1.24.0IPv4/IPv6双栈介绍kubernetes二进制安装1.23.3和1.23.4和1.23.5和1.23.6和1.24.0 文档以及安装包已生成。后续尽可能第一时......
  • 在Kubernetes上安装Netdata的方法
    介绍Netdata可用于监视kubernetes集群并显示有关集群的信息,包括节点内存使用率、CPU、网络等,简单的说,Netdata仪表板可让您全面了解Kubernetes集群,包括在每个节点上运行的......
  • 在k8s(kubernetes)上安装 ingress V1.1.3
    介绍Ingress公开了从集群外部到集群内服务的HTTP和HTTPS路由。流量路由由Ingress资源上定义的规则控制。下面是一个将所有流量都发送到同一Service的简单Ingres......
  • kubernetes(k8s) 安装 Prometheus + Grafana
    kubernetes(k8s)安装Prometheus+Grafana组件说明MetricServer:是kubernetes集群资源使用情况的聚合器,收集数据给kubernetes集群内使用,如kubectl,hpa,scheduler等。Pro......
  • docker方式实现postgres数据持久化离线安装
    保存镜像root@hello:~#dockerpullpostgresUsingdefaulttag:latestlatest:Pullingfromlibrary/postgresa2abf6c4d29d:Alreadyexistse1769f49f910:Pullcomple......
  • 06. Kubernetes - 集群安装(二进制)
    安装准备前面安装kubeadm的时候CoreDNS和ETCD都是托管在集群内部的。而但是对于二进制安装,它们都会以守护进程的方式直接运行在宿主机,这也是在生产环境比较推荐的......
  • 二进制安装Kubernetes(k8s) v1.25.0 IPv4/IPv6双栈
    二进制安装Kubernetes(k8s)v1.25.0IPv4/IPv6双栈Kubernetes开源不易,帮忙点个star,谢谢了......
  • nginx python webpy 配置安装
    安装webpy$wgethttp://webpy.org/static/web.py-0.34.tar.gz$tarxvzfweb.py-0.34.tar.gz$cdweb.py-0.34$sudopythonsetup.pyinsta......
  • Linux下的lua和boost c++的搭建和安装
    先下载lua,boostc++​​http://www.lua.org/versions.html#5.2​​​​http://www.boost.org/​​ ​​http://sourceforge.net/projects/luabind/​​1.安装lua[root@l......