现象:拉取镜像报Error response from daemon: Get https://: http: server gave HTTP response to HTTPS client

harbor默认是https协议的,如果想要通过http协议拉取harbor的镜像需要修改k8s每个节点上的/etc/docker/daemon.json文件

1.添加 "insecure-registries": ["x.x.x.x"],  # 仓库地址

2.重启docker 服务

systemctl daemon-reload && systemctl restart docker

posted on 2022-10-28 11:38  MhaiM  阅读(557)  评论(0编辑  收藏  举报