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