containerd配置镜像加速

以docker.io加速为例

编辑/etc/containerd/config.toml文件,找到 [plugins.“io.containerd.grpc.v1.cri”.registry] 在下方添加

config_path = "/etc/containerd/certs.d"

创建/etc/containerd/certs.d/docker.io目录,并在该目录下增加 hosts.toml 文件
编辑 hosts.toml 文件,添加如下内容

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

其他配置

使能(权限)

[host.

你可能感兴趣的:(Kubernetes,kubernetes)