如何写精华回答,获更多曝光?
发布
为containerd设置多个私有仓库的示例
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."192.168.199.200:8082"]
endpoint = ["http://192.168.199.200:8082"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."easzlab.io.local:5000"]
endpoint = ["http://easzlab.io.local:5000"]
解析:192.168.99.200:8082和easzlab.io.local:5000是两个私有仓库,分别配置在[plugins."io.containerd.grpc.v1.cri".registry.mirrors]节点下即可;有几个私有仓库,就配置几个plugins,重启生效
systemctl restart containerd