当前位置: 首页 > 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.jsqmd.com/news/165577/

相关文章:

  • 堆垛机控制系统 FC12货叉清零功能块实现
  • 【开题答辩全过程】以 基于安卓的停车位管理系统与设计为例,包含答辩的问题和答案
  • 湖南省衡阳市自建房设计公司/机构权威测评推荐排行榜 - 苏木2025
  • 堆垛机控制系统步FC12功能块赋值每一步目标脉冲
  • WebUploader分块上传在JSP中的加密传输步骤
  • 湖北省随州市自建房设计公司排行榜出炉!权威评测 + 真实案例,建房选对不踩坑 - 苏木2025
  • 湖南省邵阳市自建房设计公司评测排行榜:6 家主流企业实地测评,哪家更靠谱? - 苏木2025
  • 基于spark的西南天气数据的分析与应用_plbe9x5o
  • 基于Spark的南昌房价数据分析系统的设计与实现_45i0b357
  • 节能智能高效:2025年优质网带炉厂家推荐榜单 - 品牌推荐大师1
  • 数据安全与数据民主化可以兼得?Data Agent 如何实现精细化权限管控?
  • 基于大数据技术的医疗数据分析与研究
  • 儿童去屑止痒洗发水哪个好?2025年权威实验室封神榜:这五款品牌止痒去屑双效合一 - 资讯焦点
  • 【开题答辩全过程】以 基于Web酒店管理的设计与实现为例,包含答辩的问题和答案
  • 湖北省恩施市自建房设计公司哪家强?2025最新评测排行榜 + 5 星企业推荐 - 苏木2025
  • 湖北省黄冈市自建房设计公司/机构权威测评推荐排行榜 - 苏木2025
  • springboot基于JAVA的二手书籍交易系统的设计与实现
  • springboot基于Java的高校超市管理系统设计与实现
  • 【CMake】`install()` 命令详解
  • Nature Medicine | 新疗法通过免疫重置攻克难治性狼疮,这篇文章的Python代码是单细胞+空间转录组学分析的典范
  • 湖北省荆州市市自建房设计公司哪家强?2026年最新权威靠谱测评榜单抢先看 - 苏木2025
  • 绝佳教材 | 这篇模式生物(果蝇)多组学文章,涉及RNA-seq,ChIP-seq和ATAC-seq,代码全公开,值得好好学习
  • 为什么未来 3 年,AI 系统如果“不会拒绝”,就一定上不了线?
  • 2025-2026湖北省咸宁市自建房设计公司权威测评排行榜:核心推荐机构深度解析 - 苏木2025
  • debian 与 ubuntu 之 - CD-ROM in source
  • 一文读懂大数据分析与应用:核心概念、关键技术与实践框架
  • 2025年行业新趋势:十大智能印刷机强力推荐,印刷粘箱打包联动线/印刷开槽模切机/印刷联动线印刷机供货厂家推荐排行榜 - 品牌推荐师
  • 2025年,年末评选出来的hr人力资源管理系统品牌前10名榜单!
  • AI排名优化:提升品牌可见度的数字化营销新关键
  • 2025年java总结:缝缝补补又一年?