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

公司网站建设模块简介设计网址合集

公司网站建设模块简介,设计网址合集,百度信息流怎么收费,网上免费网站的域名在使用容器时#xff0c;避免不了会使用到私有仓库#xff0c;一般都是采用 harbor 作为私有仓库#xff0c;docker 对接 harbor 仓库非常简单#xff0c;哪 containerd 如何对接 harbor 呢#xff1f; 在内网使用 harbor 根据个人习惯#xff0c;一般都是非 http 并且是…在使用容器时避免不了会使用到私有仓库一般都是采用 harbor 作为私有仓库docker 对接 harbor 仓库非常简单哪 containerd 如何对接 harbor 呢 在内网使用 harbor 根据个人习惯一般都是非 http 并且是通过IP 直接访问如下 harbor仓库地址为http://192.168.199.102:80 containerd 如何上传或者下载镜像呢 2.配置说明 2.1 生成配置文件 mkdir -p /etc/containerd/ containerd config default /etc/containerd/config.toml 2.2 修改配置 大概从144行开始 vim 144 /etc/containerd/config.toml 144 [plugins.io.containerd.grpc.v1.cri.registry] 145 config_path /etc/containerd/certs.d #修改该行的配置信息 ... 创建该目录 上面的目录harbor仓库地址 mkdir -p /etc/containerd/certs.d/192.168.199.102:80 编写 harbor 配置 vim /etc/containerd/certs.d/192.168.199.102\:80/hosts.toml server http://192.168.199.102:80 [host.http://192.168.199.102:80]capabilities [pull, resolve, push]skip_verify true 重启服务 systemctl restart containerd 3.验证上传下载 3.1 准备镜像 首先从网络上下载一个镜像 nerdctl pull nginx:alpine nerdctl images REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE nginx alpine c94a22b036af 2 seconds ago linux/amd64 42.7 MiB 16.0 MiB 为该镜像打TAG nerdctl tag nginx:alpine 192.168.199.102:80/library/nginx:alpine nerdctl images REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE 192.168.199.102:80/library/nginx alpine c94a22b036af 6 minutes ago linux/amd64 42.7 MiB 16.0 MiB nginx alpine c94a22b036af 7 minutes ago linux/amd64 42.7 MiB 16.0 MiB 3.2 登录harbor nerdctl login 192.168.199.102:80 Enter Username: admin Enter Password: WARNING: Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeeded 3.3 上传镜像 上传到 harbor 仓库 nerdctl push 192.168.199.102:80/library/nginx:alpine INFO[0000] pushing as a reduced-platform image (application/vnd.docker.distribution.manifest.list.v2json, sha256:3d7805c209c8f28a172fc1b6adea4db8d68ca54d0e1696a655ef0c75333add45) index-sha256:3d7805c209c8f28a172fc1b6adea4db8d68ca54d0e1696a655ef0c75333add45: done || manifest-sha256:01ccf4035840dd6c25042b2b5f6b09dd265b4ed5aa7b93ccc4714027c0ce5685: done || config-sha256:8e75cbc5b25c8438fcfe2e7c12c98409d5f161cbb668d6c444e02796691ada70: done || elapsed: 0.9 s total: 18.0 K (20.0 KiB/s) 3.4 harbor仓库查看镜像 3.5 删除本地镜像 nerdctl rmi 192.168.199.102:80/library/nginx:alpine nginx:alpine nerdctl images REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE 3.6 启动容器 目前本地是没有镜像的直接通过 nerdctl run 启动容器。当本地没有镜像时会直接从 harbor 拉取镜像。 nerdctl images REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE nerdctl run --name ngx -d -p 80:80 192.168.199.102:80/library/nginx:alpine 192.168.199.102:80/library/nginx:alpine: resolved || index-sha256:3d7805c209c8f28a172fc1b6adea4db8d68ca54d0e1696a655ef0c75333add45: done || manifest-sha256:01ccf4035840dd6c25042b2b5f6b09dd265b4ed5aa7b93ccc4714027c0ce5685: done || config-sha256:8e75cbc5b25c8438fcfe2e7c12c98409d5f161cbb668d6c444e02796691ada70: done || layer-sha256:c23b4f8cf279507bb1dd3d6eb2d15ca84fac9eac215ab5b529aa8b5a060294c8: done || layer-sha256:f56be85fc22e46face30e2c3de3f7fe7c15f8fd7c4e5add29d7f64b87abdaa09: done || layer-sha256:2ce963c369bc5690378d31c51dc575c7035f6adfcc1e286051b5a5d9a7b0cc5c: done || layer-sha256:59b9d2200e632e457f800814693b3a01adf09a244c38ebe8d3beef5c476c4c55: done || layer-sha256:3e1e579c95fece6bbe0cb9c8c2949512a3f8caaf9dbe6219dc6495abb9902040: done || layer-sha256:547a97583f72a32903ca1357d48fa302e91e8f83ffa18e0c40fd87adb5c06025: done || layer-sha256:1f21f983520d9a440d410ea62eb0bda61a2b50dd79878071181b56b82efa9ef3: done || elapsed: 2.1 s total: 16.0 M (7.6 MiB/s) bfd2c9c9078966b6709f457586da83e604eb6c05055cc6a04febe8659d47bfb1nerdctl images REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE 192.168.199.102:80/library/nginx alpine 3d7805c209c8 28 seconds ago linux/amd64 42.7 MiB 16.0 MiB nerdctl ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES bfd2c9c90789 192.168.199.102:80/library/nginx:alpine /docker-entrypoint.… 29 seconds ago Up 0.0.0.0:80-80/tcp ngx3.7 验证查看 curl -I localhost HTTP/1.1 200 OK Server: nginx/1.23.4 Date: Thu, 06 Apr 2023 06:41:25 GMT Content-Type: text/html Content-Length: 615 Last-Modified: Tue, 28 Mar 2023 17:09:24 GMT Connection: keep-alive ETag: 64231f44-267 Accept-Ranges: bytes OKnginx启动成功。 4.配置镜像加速 通过上面的配置不难启发我们配置国内镜像加速的方式例如为 docker.io 配置镜像加速 mkdir -p /etc/containerd/docker.io vim /etc/containerd/docker.io/hosts.toml server https://docker.io [host.https://xxx.mirror.aliyuncs.com] #注册阿里云可查看个人加速源 重启服务 systemctl restart containerd 测试拉取镜像 nerdctl pull mysql nerdctl images REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE BLOB SIZE busybox stable 5acba83a746c 17 minutes ago linux/amd64 1.2 MiB 758.9 KiB java 8u111-jdk-alpine d49bf8c44670 15 minutes ago linux/amd64 140.3 MiB 49.3 MiB mysql latest e9027fe4d91c 2 seconds ago linux/amd64 504.6 MiB 144.4 MiB nginx alpine eb05700fe7ba 23 minutes ago linux/amd64 25.2 MiB 9.7 MiB 参考 https://www.cnblogs.com/hukey/p/17293126.html docker中安装最新版私有镜像仓库harbor(v2.8.2 ) - 知乎 https://www.cnblogs.com/birkhoffxia/articles/17547907.html harbor安装_凤凰涅槃的技术博客_51CTO博客 https://www.cnblogs.com/qfdxxdr/p/16384133.html
文章转载自:
http://www.morning.sthgm.cn.gov.cn.sthgm.cn
http://www.morning.qprtm.cn.gov.cn.qprtm.cn
http://www.morning.bfkrf.cn.gov.cn.bfkrf.cn
http://www.morning.rdzlh.cn.gov.cn.rdzlh.cn
http://www.morning.sogou66.cn.gov.cn.sogou66.cn
http://www.morning.rfwkn.cn.gov.cn.rfwkn.cn
http://www.morning.pkmw.cn.gov.cn.pkmw.cn
http://www.morning.kjlhb.cn.gov.cn.kjlhb.cn
http://www.morning.zwgbz.cn.gov.cn.zwgbz.cn
http://www.morning.wnnlr.cn.gov.cn.wnnlr.cn
http://www.morning.ffdyy.cn.gov.cn.ffdyy.cn
http://www.morning.saastob.com.gov.cn.saastob.com
http://www.morning.yrhsg.cn.gov.cn.yrhsg.cn
http://www.morning.rhkq.cn.gov.cn.rhkq.cn
http://www.morning.drnjn.cn.gov.cn.drnjn.cn
http://www.morning.ldfcb.cn.gov.cn.ldfcb.cn
http://www.morning.zsgbt.cn.gov.cn.zsgbt.cn
http://www.morning.zfzgp.cn.gov.cn.zfzgp.cn
http://www.morning.jlktz.cn.gov.cn.jlktz.cn
http://www.morning.kwblwbl.cn.gov.cn.kwblwbl.cn
http://www.morning.mkczm.cn.gov.cn.mkczm.cn
http://www.morning.jfgmx.cn.gov.cn.jfgmx.cn
http://www.morning.dpsgq.cn.gov.cn.dpsgq.cn
http://www.morning.bynf.cn.gov.cn.bynf.cn
http://www.morning.xskbr.cn.gov.cn.xskbr.cn
http://www.morning.bzcjx.cn.gov.cn.bzcjx.cn
http://www.morning.tmfhx.cn.gov.cn.tmfhx.cn
http://www.morning.nclps.cn.gov.cn.nclps.cn
http://www.morning.kgkph.cn.gov.cn.kgkph.cn
http://www.morning.fglth.cn.gov.cn.fglth.cn
http://www.morning.aswev.com.gov.cn.aswev.com
http://www.morning.jfcbs.cn.gov.cn.jfcbs.cn
http://www.morning.lxdbn.cn.gov.cn.lxdbn.cn
http://www.morning.txmlg.cn.gov.cn.txmlg.cn
http://www.morning.clnmf.cn.gov.cn.clnmf.cn
http://www.morning.nrzbq.cn.gov.cn.nrzbq.cn
http://www.morning.wjndl.cn.gov.cn.wjndl.cn
http://www.morning.rcjyc.cn.gov.cn.rcjyc.cn
http://www.morning.hcszr.cn.gov.cn.hcszr.cn
http://www.morning.dbxss.cn.gov.cn.dbxss.cn
http://www.morning.sxygc.cn.gov.cn.sxygc.cn
http://www.morning.tgdys.cn.gov.cn.tgdys.cn
http://www.morning.kryr.cn.gov.cn.kryr.cn
http://www.morning.tbjtm.cn.gov.cn.tbjtm.cn
http://www.morning.jppb.cn.gov.cn.jppb.cn
http://www.morning.gmgyt.cn.gov.cn.gmgyt.cn
http://www.morning.hympq.cn.gov.cn.hympq.cn
http://www.morning.lanyee.com.cn.gov.cn.lanyee.com.cn
http://www.morning.bhdtx.cn.gov.cn.bhdtx.cn
http://www.morning.rwmqp.cn.gov.cn.rwmqp.cn
http://www.morning.gkdhf.cn.gov.cn.gkdhf.cn
http://www.morning.tymwx.cn.gov.cn.tymwx.cn
http://www.morning.qgwpx.cn.gov.cn.qgwpx.cn
http://www.morning.pinngee.com.gov.cn.pinngee.com
http://www.morning.yhgbd.cn.gov.cn.yhgbd.cn
http://www.morning.dyfmh.cn.gov.cn.dyfmh.cn
http://www.morning.npcxk.cn.gov.cn.npcxk.cn
http://www.morning.dwzwm.cn.gov.cn.dwzwm.cn
http://www.morning.lgxzj.cn.gov.cn.lgxzj.cn
http://www.morning.pmptm.cn.gov.cn.pmptm.cn
http://www.morning.ftync.cn.gov.cn.ftync.cn
http://www.morning.sfwd.cn.gov.cn.sfwd.cn
http://www.morning.dkbgg.cn.gov.cn.dkbgg.cn
http://www.morning.xlbyx.cn.gov.cn.xlbyx.cn
http://www.morning.tqsnd.cn.gov.cn.tqsnd.cn
http://www.morning.ltbwq.cn.gov.cn.ltbwq.cn
http://www.morning.nxkyr.cn.gov.cn.nxkyr.cn
http://www.morning.rlhgx.cn.gov.cn.rlhgx.cn
http://www.morning.gxfzrb.com.gov.cn.gxfzrb.com
http://www.morning.ljzgf.cn.gov.cn.ljzgf.cn
http://www.morning.gqtzb.cn.gov.cn.gqtzb.cn
http://www.morning.jlktz.cn.gov.cn.jlktz.cn
http://www.morning.mxdhy.cn.gov.cn.mxdhy.cn
http://www.morning.jprrh.cn.gov.cn.jprrh.cn
http://www.morning.jbgzy.cn.gov.cn.jbgzy.cn
http://www.morning.ygth.cn.gov.cn.ygth.cn
http://www.morning.tnnfy.cn.gov.cn.tnnfy.cn
http://www.morning.wmyqw.com.gov.cn.wmyqw.com
http://www.morning.nmpdm.cn.gov.cn.nmpdm.cn
http://www.morning.rstrc.cn.gov.cn.rstrc.cn
http://www.tj-hxxt.cn/news/266567.html

相关文章:

  • 聊城市建设局网站首页大网站cn域名
  • 浙江省城乡和住房建设厅网站首页做汤的网站有哪些
  • 简述网站建设的基本过程网站备案 备注关联性
  • 苏宁易购网站建设建议广告生成器在线制作
  • 合肥餐饮网站建设把网站内的文本保存到txt怎么做
  • 可以做exe的网站山东网站推广有限公司
  • 浙江省龙泉市建设局网站株洲外贸网站建设
  • 金华 网站建设婚礼现场布置效果图
  • 企业信息查询免费长春seo关键词排名
  • 南宁做企业网站一站式网站手机端怎么做
  • 北京的建设网站公司佛山公司做网站
  • 小而美企业网站建设字体怎么安装wordpress
  • 金融直播室网站建设又拍网站怎么做
  • 网站色彩的应用wordpress dosortcode
  • 专业建设金融行业网站的公司邱县手机网站建设
  • wordpress作企业网站好吗wordpress段落缩进
  • 网站如何做付费网络营销师课程
  • ajax网站潍坊专升本教育机构
  • 一流的永州网站建设黑帽seo软件
  • 门户网站关于建设公司网站的建议
  • 农业网站建设招标书金融网站建站
  • 阿里云网站建设方案书模板伪静态 wordpress
  • 东莞网站建设58优秀的网站建设公司
  • 网站开发最流行的语言南京网站建设一条龙
  • 阿里云二级域名网站怎么建设景安网站
  • php网站开发最新需求广州行业门户网站建设
  • 专业商城网站建设微信网站建设定制
  • 受欢迎的邯郸网站建设石牌桥网站建设
  • 学平面设计网站宁波网络营销咨询
  • 网站建设用哪个北京网页设计公司