首页 > 其他分享 >containerd 配置镜像加速

containerd 配置镜像加速

时间:2022-08-16 10:33:06浏览次数:94  
标签:grpc containerd v1 registry io plugins 镜像 加速

Containerd配置镜像加速

参考文档

1. 修改Config.toml文件

[plugins."io.containerd.grpc.v1.cri".registry]
      config_path = "/etc/containerd/certs.d"  # 镜像地址配置文件

      [plugins."io.containerd.grpc.v1.cri".registry.auths]

      [plugins."io.containerd.grpc.v1.cri".registry.configs]

      [plugins."io.containerd.grpc.v1.cri".registry.headers]

      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]

2. 创建相应目录

mkdir /etc/containerd/certs.d/docker.io -pv

3. 配置加速

cat > /etc/containerd/certs.d/docker.io/hosts.toml << EOF
server = "https://docker.io"
[host."https://xxxxxxxx.mirror.aliyuncs.com"]
  capabilities = ["pull"]
EOF

标签:grpc,containerd,v1,registry,io,plugins,镜像,加速
From: https://www.cnblogs.com/liy36/p/16590745.html

相关文章