同步镜像时,有的镜像可以正常同步,有的镜像同步失败
hiddletian opened this issue · 5 comments
hiddletian commented
Bug Report
Type: bug report
What happened
when use image-syncer synchronous images,some can succeed,some cannot
What you expected to happen
synchronous images succeed
Anything else we need to know?
The log
read: connection reset by peer
Environment
- image-syncer version:
- OS (e.g.
cat /etc/os-release
): Redhat 8.4 - Registry version (e.g.
habor
): habor v2.7.1 - Others:
hhyasdf commented
这个是网络问题,跟 image-syncer 无关,具体看应该是对端镜像仓库把 tcp 连接重置了,可以增加重试次数或者检查对端镜像仓库配置
hiddletian commented
意思是同步的时候加上--retries参数,是不是镜像大的可能失败?
hhyasdf commented
意思是同步的时候加上--retries参数,是不是镜像大的可能失败?
默认就会重试,--retries参数可以增加重试次数;镜像是按层同步的,如果比较大的层没法同步的话,应该也得检查下对端镜像仓库的配置
hiddletian commented
如果是按层同步的话,我理解调整--retries参数就没什么用了吧
hhyasdf commented
如果是按层同步的话,我理解调整--retries参数就没什么用了吧
--retries参数会重试同步所有同步失败的 blob/manifest,重试指定次数