打开config.toml文件,找到[plugins."io.containerd.grpc.v1.cri".registry]部分,如果没有这个部分,可以手动添加。在这个部分中,你应该能够找到或添加insecure_registries配置项。 toml [plugins."io.containerd.grpc.v1.cri".registry] # insecure_registries 是用于存放不安全镜像仓库地址的列表 # 每个地址占一行,不...
"https://dockerproxy.com", "https://ccr.ccs.tencentyun.com", "https://registry.cn-hangzhou.aliyuncs.com" ], "insecure-registries": ["192.168.11.20:80","192.168.11.30"] } root@harbor-http:~/harbor# docker images REPOSITORY TAG IMAGE ID CREATED SIZE goharbor/redis-photon v2.8.2 6f4498...
在默认配置[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]下添加如下内容,可...
endpoint = ["https://192.168.2.250:443"] #Harbor服务地址[plugins."io.containerd.grpc.v1.cri".registry.configs] [plugin."io.containerd.grpc.v1.cri".registry.configs."harbor".tls] #harbor 证书认证配置 insecure_skip_verify = true #是否跳过证书认证(设置为false要指定ca_file、cert_file、key_f...
内网环境下部署了Harbor(private registry),用作镜像仓库来使用,是以http形式来进行服务的,即 insecure registry,ip地址为192.168.1.8 还有6台虚拟机节点,分为 3台主节点(master)和3台工作节点(worker),而192.168.1.1为网关路由器地址,所以从2开始,2-4为master,5-7为worker ...
containerd_insecure_registries: - "192.168.21.9" containerd_registry_mirrors: "192.168.21.9": endpoint: - "http://192.168.21.9" containerd_registry_auths: "192.168.21.9": username: "admin" password: "Harbor12345" 1. 2. 3. 4. 5.
insecure_skip_verify = true #跳过认证 ca_file = "/etc/containerd/myharbor-minio.com/ca.crt" [plugins."io.containerd.grpc.v1.cri".registry.configs."myharbor-minio.com".auth] username = "admin" password = "Harbor12345" [plugins."io.containerd.grpc.v1.cri".registry.headers] ...
自签名证书一般通过--insecure-registry 选项来指定该仓库是一个不安全的仓库 5.2、自签名harbor证书分发 5.2.1、创建证书⽬录 root@k8s-master01:~# mkdir -pv /etc/containerd/certs.d/harbor.magedu.netmkdir: created directory'/etc/containerd/certs.d'mkdir: created directory'/etc/containerd/certs.d/ha...
修改containerd配置。重启containerd服务。命令行登录Harbor:通过nerdctl工具登录Harbor,nerdctl生成~/.docker/config.json用于制作镜像拉取凭证。若登录报错,可添加参数--insecure-registry解决。推送镜像到Harbor:下载镜像,打上新标签后推送至Harbor。推送镜像时需添加--insecure-registry参数。拉取Harbor私有...
--insecure-registry skips verifying HTTPS certs, and allows falling back to plain HTTP (default:false) --help, -h showhelp(default:false) --version, -vprintthe version (default:false) [root@containerd ~]# 1、Run&Exec 🐳nerdctl run ...