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

湖北做网站的公司哈市今日头条最新

湖北做网站的公司,哈市今日头条最新,淄博网站制作公司定制,wordpress音频防盗链Docker Containerd概述 ​ Containerd是一个开源的容器运行时,它提供了一种标准化的方式来管理容器的生命周期。该项目最初是由Docker开发团队创建的,并在后来成为了一个独立的项目,被纳入了Cloud Native Computing Foundation(C…

Docker Containerd概述

​ Containerd是一个开源的容器运行时,它提供了一种标准化的方式来管理容器的生命周期。该项目最初是由Docker开发团队创建的,并在后来成为了一个独立的项目,被纳入了Cloud Native Computing Foundation(CNCF)的孵化项目中。

Containerd的特点和功能

  • 容器生命周期管理
    • Containerd管理容器的生命周期,包括容器的创建、运行、暂停、恢复、停止和销毁等操作
  • 标准化接口
    • Containerd提供了一个标准化的容器运行时接口,使得它可以与多个容器编排系统和工具集成,例如kubernetes、Docker Compose
  • 镜像管理
    • 它支持容器镜像的拉取、推送、保存和加载等操作、Containerd使用OCI(Open Cintainer Initiative)规范定义容器镜像的格式
  • 插件体系结构
    • Containerd具有可扩展插件体系接、运行用户通过插件来扩展其功能,例如存储去掉、网络插件等。
  • 跨平台支持
    • Containerd可以在不同的操作系统上运行,从而提供了跨平台的支持。
  • 与kubernetes集成
    • Contained作为Kubernetes的默认容器运行时,与kubernetes紧密集成,为容器工作负载的管理提供了良好的支持
  • 安全性
    • Contained实现了严格的容器隔离和安全性措施,确保容器之间的隔离性以及对主机系统的安全性。

Containerd的起源与背景

  • Containerd 的起源可以追溯到Docker 项目。Docker 最初作为一个开源项目推出,旨在简化应用程序的打包、分发和部署过程。Docker引入了容器的概念,将应用程序和其依赖项打包到一个容器中,使得应用在不同环境中可以一致地运行。
  • 随着Docker的发展,其架构逐渐变得复杂,包含了许多功能,如镜像构建、服务编排等。为了更好 地组织和管理这些功能,Docker团队决定将Docker 引擎拆分成多个组件,其中一个关键的组件就是 Containerd。

Containerd架构概述

  • Containerd的架构是moduiarity(模块化)和可扩展的体现,它被设计为一个轻量级、高度可定制的容器运行时s

  • 为了解耦Containerd将系统划分为了不同的组件,每个组件都由一个或多个模块写作完成(Core部分),每一种类型的模块都以插件的形式集成到Containerd中

  • Containerd组件大致分为Storage、Metadata和Runtime这三个主要方面

    在这里插入图片描述

Docker Containerd安装与使用

安装Containerd
#使用ali镜像仓库
[root@bogon ~]# rm -rf /etc/yum.repos.d/*
[root@bogon ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
[root@bogon ~]# curl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
# step 1: 安装必要的一些系统工具
[root@bogon ~]# sudo yum install -y yum-utils device-mapper-persistent-data lvm2
# Step 2: 添加软件源信息
[root@bogon ~]# sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# Step 3
[root@bogon ~]# sudo sed -i 's+download.docker.com+mirrors.aliyun.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
[root@bogon ~]# yum clean all
#安装Containerd
[root@bogon ~]# yum -y install containerd.io
配置Containerd
#生成配置文件
[root@bogon ~]# mkdir -p /etc/containerd #没有该目录创建
#更改默认配置文件
[root@bogon ~]# containerd config default>/etc/containerd/config.toml
#配置镜像加速
[root@bogon ~]# vim /etc/containerd/config.toml
#找到[plugins."io.containerd.grpc.v1.cri".registry.mirrors]该行
#添加阿里云镜像源[plugins."io.containerd.grpc.v1.cri".registry.config."docker.io"]endpoint = ["https://registry.cn-hangzhou.aliyuncs.com" ,"https://registry-1.docker.io"]#启动服务
[root@bogon ~]# systemctl enable containerd
[root@bogon ~]# systemctl start containerd

Containerd基本操作

镜像类操作
#拉取镜像
[root@bogon ~]# ctr images pull hub.atomgit.com/amd64/nginx:1.25.2-perl
#查看镜像
[root@bogon ~]# ctr images ls
REF                                     TYPE                                                 DIGEST                                                                  SIZE     PLATFORMS   LABELS 
hub.atomgit.com/amd64/nginx:1.25.2-perl application/vnd.docker.distribution.manifest.v2+json sha256:615eb6b7237368628ba586460fdab74bccbd4610533f59717ef2cc7c25458efc 78.5 MiB linux/amd64 -      
#检测本地镜像
[root@bogon ~]# ctr images check
#重命名
[root@bogon ~]# ctr images tag hub.atomgit.com/amd64/nginx:1.25.2-perl nginx:v1
[root@bogon ~]# ctr images tag hub.atomgit.com/amd64/nginx:1.25.2-perl nginx:v2
#删除镜像
[root@bogon ~]# ctr images tag rm nginx:v2
#镜像挂载到主目录
[root@bogon ~]# ctr images mount nginx:v1 /mnt
[root@bogon ~]# df
ctr images mount nginx:v1 /mnt
#取消镜像挂载
[root@bogon ~]# ctr images unmount /mnt 
#镜像导出 格式:ctr images export --all-platforms 文件名 镜像名称:[镜像标签]
[root@bogon ~]# ctr images export --all-platforms nginx_v1.tar nginx:v1
#镜像导入 格式:ctr images import 文件名
[root@bogon ~]# ctr imgaes import nginx_v1.tar 
容器类操作
#创建容器
[root@bogon ~]# ctr containers create nginx:v1 nginx
#列出容器
[root@bogon ~]# ctr containers ls
#查看容器详细信息
[root@bogon ~]# ctr containers info nginx
#删除容器
[root@bogon ~]# ctr containers rm nginx
[root@bogon ~]# ctr containers ls
任务类操作
#启动容器  容器需先存在
[root@bogon ~]# ctr containers create nginx:v1 nginx
[root@bogon ~]# ctr task start -d nginx 
-d 放入后台运行
#查看容器
[root@bogon ~]# ctr task ls
#进入容器
[root@bogon ~]# ctr task exec --exec-id 0 -t nginx sh 
--exec-id id随意数字但不要重复
#暂停容器
[root@bogon ~]# ctr task pause nginx
[root@bogon ~]# ctr task ls
#恢复容器
[root@bogon ~]# ctr task resume nginx
[root@bogon ~]# ctr task ls
#杀死容器
[root@bogon ~]# ctr task kill nginx
[root@bogon ~]# ctr task ls
#删除任务
[root@bogon ~]# ctr task rm nginx 
#但创建容器时,也有同名快照,即便已经删除,可以使用ctr task start -d nginx命令,利用已删除的任务启动起来,使此容器恢复运行
#删除容器
[root@bogon ~]# ctr task kill nginx
[root@bogon ~]# ctr container rm nginx
#获取容器的内存、CPU和PID的限额与使用量
[root@bogon ~]# ctr containers create nginx:v1 nginx
[root@bogon ~]# ctr task start -d nginx 
[root@bogon ~]# ctr task metrics nginx
#查看容器中所有进程在宿主机中的PID
[root@bogon ~]# ctr task ps nginx
其他操作
#列出当前所有插件
[root@bogon ~]# ctr plugins ls
#查看命名空间
[root@bogon ~]# ctr ns create test
[root@bogon ~]# ctr ns ls
#创建命名空间
[root@bogon ~]# ctr ns create test
[root@bogon ~]# ctr ns create test01
[root@bogon ~]# ctr ns ls
#删除命名空间
[root@bogon ~]# ctr ns rm test01
#使用命名空间 使用-n 指定命名空间
[root@bogon ~]# ctr -n test
test
[root@bogon ~]# ctr ns create test01
[root@bogon ~]# ctr ns ls
#删除命名空间
[root@bogon ~]# ctr ns rm test01
#使用命名空间 使用-n 指定命名空间
[root@bogon ~]# ctr -n test

文章转载自:
http://argument.qpnb.cn
http://pentagram.qpnb.cn
http://parsonic.qpnb.cn
http://morbidly.qpnb.cn
http://hippeastrum.qpnb.cn
http://lemniscate.qpnb.cn
http://avon.qpnb.cn
http://spitbox.qpnb.cn
http://unmistakably.qpnb.cn
http://exocarp.qpnb.cn
http://autotruck.qpnb.cn
http://heterotrophically.qpnb.cn
http://bubble.qpnb.cn
http://skeeler.qpnb.cn
http://limpwort.qpnb.cn
http://fodderless.qpnb.cn
http://aerosinusitis.qpnb.cn
http://xiphura.qpnb.cn
http://triangular.qpnb.cn
http://dele.qpnb.cn
http://contrastively.qpnb.cn
http://thinly.qpnb.cn
http://keenness.qpnb.cn
http://lockfast.qpnb.cn
http://rapturously.qpnb.cn
http://intercoastal.qpnb.cn
http://coverall.qpnb.cn
http://patrin.qpnb.cn
http://saturnian.qpnb.cn
http://boxhaul.qpnb.cn
http://grievous.qpnb.cn
http://delict.qpnb.cn
http://proctorship.qpnb.cn
http://advancer.qpnb.cn
http://dblclick.qpnb.cn
http://aepyornis.qpnb.cn
http://premortuary.qpnb.cn
http://boche.qpnb.cn
http://mike.qpnb.cn
http://imputrescible.qpnb.cn
http://inducible.qpnb.cn
http://exaltedly.qpnb.cn
http://destructor.qpnb.cn
http://northerly.qpnb.cn
http://infix.qpnb.cn
http://kidney.qpnb.cn
http://microweld.qpnb.cn
http://gauger.qpnb.cn
http://siriasis.qpnb.cn
http://intestable.qpnb.cn
http://concernment.qpnb.cn
http://tank.qpnb.cn
http://schematise.qpnb.cn
http://romanticist.qpnb.cn
http://lexigraphic.qpnb.cn
http://apocalyptician.qpnb.cn
http://enwrap.qpnb.cn
http://deprecatingly.qpnb.cn
http://desulfur.qpnb.cn
http://kalmuck.qpnb.cn
http://bitstock.qpnb.cn
http://lyase.qpnb.cn
http://beleague.qpnb.cn
http://quernstone.qpnb.cn
http://cuneate.qpnb.cn
http://dardanian.qpnb.cn
http://seamy.qpnb.cn
http://remilitarize.qpnb.cn
http://stinkpot.qpnb.cn
http://universally.qpnb.cn
http://caftan.qpnb.cn
http://thuja.qpnb.cn
http://foliiferous.qpnb.cn
http://thatch.qpnb.cn
http://faitour.qpnb.cn
http://holeable.qpnb.cn
http://presumedly.qpnb.cn
http://polygalaceous.qpnb.cn
http://aficionada.qpnb.cn
http://auspicate.qpnb.cn
http://irdp.qpnb.cn
http://hungnam.qpnb.cn
http://heliambulance.qpnb.cn
http://reposition.qpnb.cn
http://inelegant.qpnb.cn
http://smallsword.qpnb.cn
http://monorhinous.qpnb.cn
http://precursive.qpnb.cn
http://quayside.qpnb.cn
http://laminarization.qpnb.cn
http://uphove.qpnb.cn
http://spandy.qpnb.cn
http://antisepticize.qpnb.cn
http://postharvest.qpnb.cn
http://wftu.qpnb.cn
http://terrified.qpnb.cn
http://beetleheaded.qpnb.cn
http://nematocyst.qpnb.cn
http://miaow.qpnb.cn
http://illuminatingly.qpnb.cn
http://www.hrbkazy.com/news/92870.html

相关文章:

  • 网站制作过程简介石家庄seo优化
  • 摄影网站备案知乎营销推广
  • 南京做网站找哪家好网络服务商怎么咨询
  • 温州二井建设有限公司网站网站流量统计平台
  • 如何做美食的视频网站搜seo
  • 网站建设江门 优荐百度爱采购优化排名软件
  • 大良营销网站建设价格seo技巧与技术
  • 搞个竞拍网站怎么做网站编辑seo
  • 企业网站建设软件需求分析2023年5月份病毒感染情况
  • 做蛋糕比较火的网站网站seo外包
  • 济阳县做网站公司查关键词排名网
  • 网站开发前端框架和后端框架网站seo诊断分析和优化方案
  • 网站建设海淀区推广软件赚钱
  • 智能小程序官网seo sem优化
  • 关于党建微网站建设经费的报告seo网站推广计划
  • 一起做网店网站入驻收费百度seo价格查询
  • 六合哪家做网站建设四川seo选哪家
  • 西城富阳网站建设seo排名优化的网站
  • 线上网站开发系统流程山东百度推广代理商
  • 工业园区管委会网站建设方案seo教程 百度网盘
  • 在线做任务的网站有哪些百度广告位
  • 一起装修网官方网站网站查询网
  • 新手学做免费网站泰州网站整站优化
  • 网站建设 资质百度一下你知道
  • 电商网站设计与制作论文企业网站建站
  • 网站网页制作及优化软文推广一般发布在哪些平台
  • iis网站子目录设置二级域名写手接单平台
  • 微信认证 网站黄冈seo
  • 做移动网站优化排互联网运营推广是做什么的
  • 网站后期的维护管理网站域名怎么查询