报错如下:

The push refers to repository [ip:5000/hello]
Get https://ip:5000/v2/: http: server gave HTTP response to HTTPS client

前提:服务端已经是http请求了,执行vi  /usr/lib/systemd/system/docker.service

修改 配置如下

ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:5678 \
        --insecure-registry 0.0.0.0:5000

解决:

更改客户端配置,客户端默认发起https请求,改成http的(若是windows电脑,修改daemon.json配置文件)

搭建docker镜像库私服,不能上传镜像

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-06-07
  • 2021-08-06
  • 2022-01-19
  • 2021-04-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2021-08-27
相关资源
相似解决方案