Docker pull Harbor上的镜像报错【http: server gave HTTP response to HTTPS client】

Docker pull Harbor上的镜像报错【http: server gave HTTP response to HTTPS client】

打开/etc/docker/daemon.json文件,在文件中添加如下配置:

"insecure-registries":["Harbor ip地址1 : Harbor 端口1","Harbor ip地址2 : Harbor 端口2"]  # 可以指定多个镜像仓库

然后重启docker

systemctl daemon-reload
systemctl restart docker

然后再pull就成功了

docker pull 镜像地址

denied: requested access to the resource is denied
报错是因为未登录Harbor

docker login --username=usr --password=pwd 123.321.12.34:567

docker login -u usr -p 'pwd' 123.321.12.34:567

docker login -u usr 123.321.12.34:567
pwd

你可能感兴趣的:(容器)