docker push image harbor http 镜像
  Y5KkHyxABkiu 2023年11月02日 36 0

前言

搭建的 harbor 仓库为 http 协议,在本地登录后,推送镜像发生如下报错:

docker push 192.168.xx.xx/test/grafana:v10.1.1
The push refers to repository [192.168.xx.xx/test/grafana]
Get "https://192.168.xx.xx/v2/": dialing 192.168.xx.xx:443 matches static system exclude: connecting to 192.168.xx.xx:443: dial tcp 192.168.xx.xx:443: connect: connection refused

docker push 192.168.xx.xx:80/test/grafana:v10.1.1
The push refers to repository [192.168.xx.xx:80/test/grafana]
An image does not exist locally with the tag: 192.168.xx.xx:80/test/grafana

正确方式

将镜像名称改为带 :80 端口号的镜像

docker tag 192.168.xx.xx/test/grafana:v10.1.1 192.168.xx.xx:80/test/grafana:v10.1.1

再次push 镜像

docker push 192.168.xx.xx:80/test/grafana:v10.1.1
The push refers to repository [192.168.xx.xx:80/test/grafana]
3e1d7faaa459: Pushed
52fbdb6a467e: Pushed
9a4bf5224a49: Pushed
8d24970dfa0c: Pushed
ce10e25b48eb: Pushed
403eb005872a: Pushed
e150366f85e6: Pushed
205afe5dc400: Pushed
44cb0da43c9f: Pushed
36b50b131297: Pushed
v10.1.1: digest: sha256:2b2500517d81c4590fe1868626b99396aa50b1317728a71326765642a461532a size: 2416

成功!!



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
Y5KkHyxABkiu