当前位置: 首页 > news >正文

containerd怎么离线安装

参考
https://github.com/containerd/containerd/blob/main/docs/getting-started.md
假如主机没有网络或者yum apt源无法安装containerd可以使用离线安装方式

  1. 环境查看
    系统环境
$ cat /etc/redhat-release 
Rocky Linux release 10.1 (Red Quartz)
$ uname -a
Linux iZ7xvg439r071687uibrilZ 6.12.0-55.41.1.el10_0.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Oct 31 14:20:11 UTC 2025 x86_64 GNU/Linux
  1. 下载安装
    下载离线包
    下载地址:https://github.com/containeimage
    本次下载
    image
    放置在目录
# 目录
/usr/local
# 解压出可执行文件在bin目录
$ tar Cxzvf /usr/local containerd-1.6.2-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

设置systemctl
下载地址: https://raw.githubusercontent.com/containerd/containerd/main/containerd.service

# cat /usr/lib/systemd/system/containerd.service
# Copyright The containerd Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.[Unit]
Description=containerd container runtime
Documentation=https://containerd.io
After=network.target dbus.service[Service]
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/containerdType=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# 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 containerd
# systemctl start containerd
http://www.rkmt.cn/news/181083.html

相关文章:

  • WebUploader分块上传在JSP中的加密传输步骤
  • 湖南省张家界市设计公司权威评测排行榜:6大维度打分,5星企业全解析 - 苏木2025
  • 湖北省随州市自建房设计公司排行榜出炉!权威评测 + 真实案例,建房选对不踩坑 - 苏木2025
  • 基于spark的西南天气数据的分析与应用_plbe9x5o
  • 数据安全与数据民主化可以兼得?Data Agent 如何实现精细化权限管控?
  • 【开题答辩全过程】以 基于Web酒店管理的设计与实现为例,包含答辩的问题和答案
  • 湖北省恩施市自建房设计公司哪家强?2025最新评测排行榜 + 5 星企业推荐 - 苏木2025
  • 【CMake】`install()` 命令详解
  • 绝佳教材 | 这篇模式生物(果蝇)多组学文章,涉及RNA-seq,ChIP-seq和ATAC-seq,代码全公开,值得好好学习
  • 为什么未来 3 年,AI 系统如果“不会拒绝”,就一定上不了线?
  • debian 与 ubuntu 之 - CD-ROM in source
  • skynet源码学习-clusteragent.lua
  • 力扣刷题:长按键入
  • Java面试必看:同步方法和同步块到底该选哪个?
  • 谁懂啊!2026 转行网安太香了!480 万缺口 + 15K 起薪,薪资 + 工作内容 + 前景全解析!
  • 基于昇腾910B的文生图模型推理服务化部署
  • 港大联合字节跳动提出JoVA:一种基于联合自注意力的视频-音频联合生成模型
  • python基于Vue的农机配件仓库管理系统的设计与实现_56d42_django Flask pycharm项目
  • python基于Vue的减肥体脂健康运动健身器材管理系统的设计与实现_5m179_django Flask pycharm项目
  • 在线互动学习网站设计毕业论文+PPT(附源代码+演示视频)
  • python基于Vue的客户关系订单服务管理系统设计与实现_37g31_django Flask pycharm项目
  • :has 伪类选择器(“父选择器” 或 “反向选择器” )
  • python基于Vue的快递业务配送取件管理系统_gbu3f_django Flask pycharm项目
  • python基于Vue的汽配汽车配件销售采购管理系统_23cu0_django Flask pycharm项目
  • (网警vs顶级黑客)网络攻防的核心底层逻辑
  • python基于Vue的贫困地区儿童捐赠资助系统的设计与实现_wzqna_django Flask pycharm项目
  • HTML富文本编辑器粘贴PPT图片自动上传组件
  • Go context详解:超时控制与请求链路追踪
  • 新能源汽车车载双向 OBC 的 MATLAB 仿真探索
  • 短视频多平台智能运营神器源码:AI剪辑+矩阵管理+百种工具赋能