AliyunContainerService / image-syncer

Docker image synchronization tool for Docker Registry V2 based services
Apache License 2.0
883 stars 249 forks source link

不支持非安全仓库的镜像同步 #75

Open TangxingZhou opened 3 years ago

TangxingZhou commented 3 years ago

ERRO[2021-07-14 10:39:57] Generate sync task 【src img】 to 【dest img】 error: get tags failed from 【src img】 error: error pinging docker registry 【src registry】: Get https://【src registry】/v2/: http: server gave HTTP response to HTTPS client

wangr0031 commented 3 years ago

可以试试这个工具是否可以: https://github.com/wct-devops/image-transmit

xavi713 commented 3 years ago

这个直接在auth或config的配置中对相应的registry配置 "insecure": true即可

willzhang commented 3 years ago

这个直接在auth或config的配置中对相应的registry配置 "insecure": true即可

配置也不行,无效

IWANTBAT commented 3 years ago

应该是两个都要设置"insecure": true。源和目的

rickywu commented 2 years ago

auth.json里配置源和目标"insecure": true,还是无效

YouZhengChuan commented 6 months ago

auth.json里配置源和目标"insecure": true,还是无效

我也遇到同样的问题,不过按照这个解决方案解决了

应该是两个都要设置"insecure": true。源和目的

Failed to executed synchronizing blob sha256:SHA256 from host1:5000/img/name:tag to host2:5000/img/name:tag: failed to check blob sha256:xxxx(167) exist: pinging container registry host2:5000: Get "https://host2:5000/v2/": http: server gave HTTP response to HTTPS client. Now 2/63 tasks have been processed.

解决方案 auth.yaml 中添加设置:

"host1:5000":
  insecure: true

"host2:5000":
  insecure: true

"host1":
  insecure: true

"host2":
  insecure: true