当前位置:网站首页>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 ?

边栏推荐
- R语言数据预处理、把类型变量转化为因子变量,把数据集转化为h2o格式、数据集划分(训练集、测试集、验证集)
- Can financial products be redeemed on weekends?
- MySQL基础——约束
- Gradle Build Cache引发的Task缓存编译问题
- [in depth understanding of tcapulusdb technology] introduction tcapulusdb problem summary
- 智能计算之神经网络(Hopfield网络-DHNN,CHNN )介绍
- Async-profiler介绍
- [deeply understand tcapulusdb technology] tcapulusdb process
- [deeply understand tcapulusdb technology] tcapulusdb table management - create a new table
- Implementation of UART with analog serial port
猜你喜欢

【深入理解TcaplusDB知识库】部署TcaplusDB Local版常见问题

【Proteus仿真】74LS138译码器流水灯

Emotion analysis with RNN & CNN pytorch

IVX no code challenge five second game production

一个支持IPFS的电子邮件——SKIFF

Introduction of neural network (BP) in Intelligent Computing

Introduction to async profiler

Easydss problem and solution summary
![[deeply understand tcapulusdb technology] tcapulusdb table management - clean up table](/img/2b/3ab5e247ac103728b4d3579c3c5468.png)
[deeply understand tcapulusdb technology] tcapulusdb table management - clean up table

Redis中的Multi事务
随机推荐
Oracle system/用户被锁定的解决方法
Cross domain cors/options
Three dimensional world helps the laboratory to consolidate the complete quality system management
Easydss problem and solution summary
LORA技术---LoRa信号从数据流变为LoRa扩频信号,再从射频信号通过解调变为数据
[in depth understanding of tcapulusdb technology] business guide for creating doc acceptance
MySQL基础——约束
【深入理解TcaplusDB知识库】部署TcaplusDB Local版常见问题
[deeply understand tcapulusdb technology] tcapulusdb table management - modify table
CVPR 2022 oral | video text pre training new SOTA, HKU and Tencent arc lab launched excuse task based on multiple-choice questions
Random talk about redis source code 122
完全背包如何考虑排列问题
One picture decoding opencloudos community open day
[in depth understanding of tcaplus DB technology] Introduction to tcaplus JDBC development
经典面试题:一个页面从输入url到呈现过程
[deeply understand tcapulusdb technology] tcapulusdb table management - create a new table
不断重修的计划与变化
Scheduling with Testing
Lora technology -- Lora signal changes from data to Lora spread spectrum signal, and then from RF signal to data through demodulation
He was in '98. I can't play with him