1.harbor双主架构同步镜像失败
错误信息如下:
2020-08-26T07:46:58Z [INFO] initialization completed: repository: library/alpine, tags: [latest], source registry: URL-http://192.168.126.137 insecure-true, destination registry: URL-http://192.168.126.134 insecure-true
2020-08-26T07:46:59Z [ERROR] [job_logger.go:81]: failed to get project library from source registry: Get http://192.168.126.137/api/projects?name=library: dial tcp 192.168.126.137:80: getsockopt: no route to host
原因:怀疑是防火墙原因导致
解决方案:
1)停止dockers服务 systemctl stop docker
2)开始刷新iptables规则
iptables --flush
iptables -tnat --flush
3)然后再启动服务 systemctl start docker
此时问题解决!
来源:oschina
链接:https://my.oschina.net/u/4342750/blog/4533956