美文网首页
Containerd镜像加速

Containerd镜像加速

作者: 奶茶不要奶不要茶 | 来源:发表于2023-03-13 09:09 被阅读0次

编辑Containerd的配置文件 /etc/containerd/config.toml, 在 [plugins."io.containerd.grpc.v1.cri".registry] 下方添加 config_path

    [plugins."io.containerd.grpc.v1.cri".registry]
      config_path = "/etc/containerd/certs.d"

创建目录 /etc/containerd/certs.d/docker.io,在其中添加包含下面内容的 hosts.toml 文件

server = "https://docker.io" # 源镜像地址
[host."https://xxxxxx.mirror.aliyuncs.com"] # 镜像加速地址

重启 Containerd

systemctl restart containerd

案例

$ tree /etc/containerd/certs.d
/etc/containerd/certs.d/
├── docker.io
│   └── hosts.toml
└── quay.io
    └── hosts.toml

$ cat /etc/containerd/certs.d/docker.io/hosts.toml
server = "https://docker.io"
[host."https://prh13f1a.mirror.aliyuncs.com"]

$ cat /etc/containerd/certs.d/quay.io/hosts.toml
server = "https://quay.io"
[host."https://quay.mirrors.ustc.edu.cn"]

参考链接
registry.md
config.md#registry-configuration

相关文章

  • Containerd的安装和配置

    Containerd 安装 Containerd Github: containerd/containerd[ht...

  • Ubuntu 20.04 install docker

    更换阿里云镜像源 Docker CE 镜像 安装指定版本 Docker 镜像加速 修改加速镜像配置文件 启动doc...

  • docker问题汇总

    如何加速docker下载镜像 登陆阿里,获取镜像加速地址,按操作修改镜像源https://cr.console.a...

  • Docker国内镜像加速镜像的下载

    Docker国内镜像加速镜像的下载 DaoCloud加速 访问DaoCloud官网进行注册账户。 点击顶上加速器,...

  • Docker 镜像加速

    Docker 镜像加速 国内从 DockerHub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker ...

  • 部署MongoDB容器

    1.镜像加速 使用阿里云加速 注册地址dev.aliyun.com/ 镜像加速页地址cr.console.aliy...

  • docker加速

    进去阿里云 阿里云加速器hub 【Docker镜像仓库】->【Dock镜像站点】->[加速教程]

  • centos7安装docker

    linux安装docker-ce阿里云docker官方镜像加速文档阿里云镜像加速器

  • centos7安装docker

    配置镜像加速 登录阿里云把自己的镜像加速器地址粘贴进去 卸载

  • Win10配置Docker-运行mysql

    一.配置镜像源 本篇使用阿里云镜像加速器,阿里云控制台,容器服务下的镜像加速器 设置本机docker镜像源 这时,...

网友评论

      本文标题:Containerd镜像加速

      本文链接:https://www.haomeiwen.com/subject/eeqcrdtx.html