当前位置:网站首页>Container container runtime (2): which is better for you, yum installation or binary installation?
Container container runtime (2): which is better for you, yum installation or binary installation?
2022-06-22 20:31:00 【51CTO】

One 、 Preface
Containerd Installation , If you use yum It's going to be a lot easier to install , But the installed version is basically fixed , It is not suitable for the actual business scenario .
Binary installation , Relatively flexible .
Two 、yum Way to install
install containerd It will be installed automatically runc.
2.1 Download the alicloud image source
2.2 Search for containerd Software
2.3 install
2.4 start-up containerd service
2.5 View service information
$ ctr version
Client:
Version:
1.4.9
# Client version number
Revision: e25210fe30a0a703442421b0f60afac609f950a3
Go version: go1.15.14
Server:
Version:
1.4.9
# Server version number
Revision: e25210fe30a0a703442421b0f60afac609f950a3
UUID: 3a988dc2-25d5-4753-914c-3344e4cb3c6e
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
3、 ... and 、 Binary installation
3.1 Download binary package
Containerd There are two kinds of packages :
- containerd-xxx: This package can be used for stand-alone testing , It doesn't contain runC, It needs to be installed in advance .
- cri-containerd-cni-xxxx: contain runc and k8s Relevant documents required in .k8s This package is required in the cluster . Although included runC, But it depends on seccomp( Secure computing mode , Is a pattern that restricts containers from invoking system resources .)
$ wget https://github.com/containerd/containerd/releases/download/v1.6.5/cri-containerd-1.6.5-linux-amd64.tar.gz
$ tar zxvf cri-containerd-1.6.5-linux-amd64.tar.gz
$ ls
-l
drwxr-xr-x
4 root root
51
4 month
26
07:52 etc
drwxr-xr-x
4 root root
35
4 month
26
07:51 opt
drwxr-xr-x
3 root root
19
4 month
26
07:50 usr
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
etc Catalog : Mainly for containerd Service management profile and cni Virtual network card configuration file ;
opt Catalog : Mainly for gce Use in the environment containerd Configuration files and cni plug-in unit ;
usr Catalog : Mainly for containerd Runtime binaries , contain runc;
containerd There are five files in the installation package of , With the above command, they are installed in /usr/local/bin Directory :
- containerd: The runtime of the container , With gRPC The form of agreement is provided to meet OCI The standard API;
- containerd-release:containerd Project release release tools ;
- containerd-stress:containerd Pressure test tools ;
- containerd-shim: This is the runtime carrier for each container , We are docker Seen on the host shim It also represents one by one through the call containerd Starting up docker Containers ;
- ctr: It's a simple CLI Interface , Used as a containerd Some debugging purposes of itself , When put into production, it should be coordinated docker perhaps cri-containerd Deploy ;
3.2 Copy binary executable to `$PATH` in
After unpacking the installation package , After decompression usr/local/bin、 There are related binary executable files in the directory , Copy it to $PATH Environment .

3.3 create profile
Containerd The default profile for is /etc/containerd/config.toml
3.4 Create a service management profile
Copy the service management profile to /usr/lib/systemd/system/ Catalog
3.5 start-up containerd service
View version
3.6 install runc( Binary system )
Due to the runC By default, you need to install seccomp Support , Separate installation required , And different versions runC Yes seccomp Version requirements are inconsistent , Therefore, it is recommended to download separately runC Binary package for installation , It contains seccomp Module support .

【 Error reason 】 Lack of dependency packages libseccomp(2.4 Above version )
【 terms of settlement 】 install libseccomp 2.5.1
$ wget http://rpmfind.net/linux/centos/8-stream/BaseOS/x86_64/os/Packages/libseccomp-2.5.1-1.el8.x86_64.rpm
$ rpm
-ivh libseccomp-2.5.1-1.el8.x86_64.rpm
$ rpm
-qa |
grep libseccomp
libseccomp-2.5.1-1.el8.x86_64
$ runc
-version
runc version
1.1.2
commit: v1.1.2-0-ga916309f
spec:
1.0.2-dev
go: go1.17.11
libseccomp:
2.5.1
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
Four 、 Recommended reading ( Excellent articles )
- Harbor High availability cluster design and deployment ( Practice + video ), Based on offline installation mode
- Harbor Advanced : Use Harbor Storage Helm chart
- Python Realization Harbor Garbage automation of private image warehouse
- Harbor jobservice Component exception handling
- Harbor High availability design : External use Redis Cache part
- Alicloud image migration to Harbor Detailed operation steps
- How to integrate dockerhub The image on is migrated to Harbor In the private mirror Repository ?
- Harbor Version update (1.10.7—>2.0.x)
- worry Harbor Data loss ? Talk about Harbor Backup and recovery methods .
- Harbor Version update ( illustrated )
- Multi user scenario Harbor, How I manage easily !
- Harbor High availability design , Using an external database - Detailed operation steps
- shell In order to get Harbor List of all images in the ( Super practical , Recommended collection )
- harbor Password lost , forget Harbor password ?
- Helm Deploy Harbor, Realize highly available image warehouse ( Super detailed sharing )~ The pit record is attached
- Harbor Configuration optimization , Deep parsing of configuration file !
- Prometheus monitor Harbor actual combat ( The whole net starts )
- k8s How nodes from Harbor Pull the mirror image from the ? Configuration of mirror pull voucher
- How to build a secure intranet Harbor service ?( Hyperdetail )
- Harbor One key deployment —— How can beginners quickly understand it ?

边栏推荐
- Oh, my God, it's a counter attack by eight part essay
- Using span method to realize row merging of multi-layer table data
- Kotlin1.6.20新功能Context Receivers使用技巧揭秘
- web技术分享| 【高德地图】实现自定义的轨迹回放
- 6月第3周B站榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
- 软件上线前为什么要做性能测试?软件性能测试机构怎么找
- Summary of 2019: 31 is just another start
- 智能计算之神经网络(BP)介绍
- 讲真,Kotlin 协程的挂起没那么神秘(原理篇)
- Nestjs integrates config module and Nacos to realize configuration unification
猜你喜欢

智能計算之神經網絡(BP)介紹

一张图解码 OpenCloudOS 社区开放日

Understand the index of like in MySQL

从感知机到Transformer,一文概述深度学习简史

怎样实现网页端im即时通讯中的@人功能

智能计算之神经网络(Hopfield网络-DHNN,CHNN )介绍
Gradle Build Cache引发的Task缓存编译问题

Multi transactions in redis

树莓派环境设置
![[graduation season] step by step? Thinking about four years of University by an automation er](/img/56/86b5dbb7ce7cf924c85ed1071b1e6c.jpg)
[graduation season] step by step? Thinking about four years of University by an automation er
随机推荐
Nestjs 集成 config module 与 nacos 实现配置化统一
【深入理解TcaplusDB技术】单据受理之创建游戏区
Kotlin1.6.20新功能Context Receivers使用技巧揭秘
3个月自学自动化测试,薪资从4.5K到15K,鬼知道我经历了什么?
【毕业季】走一步看一步?一个自动化er对大学四年的思考
用RNN & CNN进行情感分析 - PyTorch
Containerd容器运行时(2):yum安装与二进制安装,哪个更适合你?
What can the accelerated implementation of digital economy bring to SMEs?
Pit of undefined reference
6月第3周B站榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
DynamicDatabaseSource,在应用端支持数据库的主从
数字化转型的失败原因及成功之道
It supports running in kubernetes, adds multiple connectors, and seatunnel version 2.1.2 is officially released!
[deeply understand tcapulusdb technology] create a game area for document acceptance
Scheduling with Testing
Introduction of neural network (BP) in Intelligent Computing
跨域 CORS/OPTIONS
Connect function usage of socket
采用QTest进行数据集测试-性能测试-GUI测试
Precautions for Apollo use