打开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...
方式1,使用–insecure-registry参数 nerdctl --insecure-registry login harbor-server.linux.io nerdctl tag ubuntu:20.04 harbor-server.linux.io/base-images/ubuntu:20.04 nerdctl --insecure-registry push harbor-server.linux.io/base-images/ubuntu:20.04 #推送镜像测试 1. 2. 3. 方式2,将harbor证书分发给co...
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...
在默认配置[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]下添加如下内容,可...
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-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...
nerdctl --insecure-registry --namespace=k8s.io push myharbor-minio.com/bigdata/nginx:nerctl ctr --namespace=k8s.io images push myharbor-minio.com/bigdata/nginx:nerctl --skip-verify --user admin:Harbor12345 –namespace=k8s.io 指定命名空间,跟-n一样,不是必须,根据环境而定 ...
修改containerd配置。重启containerd服务。命令行登录Harbor:通过nerdctl工具登录Harbor,nerdctl生成~/.docker/config.json用于制作镜像拉取凭证。若登录报错,可添加参数--insecure-registry解决。推送镜像到Harbor:下载镜像,打上新标签后推送至Harbor。推送镜像时需添加--insecure-registry参数。拉取Harbor私有...
v1.cri".registry.mirrors."docker.io"] endpoint = ["https://registry-1.docker.io"] [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost"] endpoint = ["http://127.0.0.1"] [plugins."io.containerd.grpc.v1.cri".registry.configs."http://127.0.0.1".tls] insecure_skip_verify...