docker push 镜像到本地镜像仓库时报如下错误:

[root@master registry]# docker push 172.20.120.211:32002/harbor-log
The push refers to a repository [172.20.120.211:32002/harbor-log]
Get https://172.20.120.211:32002/v1/_ping: http: server gave HTTP response to HTTPS client

解决办法是:

在/etc/docker下,修改daemon.json文件,写入:

{"insecure-registries":["172.20.120.211:32002"]}

重启docker

[root@master docker]# systemctl restart docker.service

重新启动registry。

docker push 成功。

相关文章:

  • 2022-02-07
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-08-13
  • 2021-09-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案