内网搭建Harbor,并有配置HTTPS,通过Nginx进行访问,在Nginx配置HTTPS协议进行访问。
执行docker push到harbor私库中时报unknown blob错误。
$ docker push harbor.xxlab.tech/xxlab/demo:0.0.1
The push refers to repository [harbor.xxlab.tech/xxlab/demo:0.0.1]
d3627315d744: Pushing [==================================================>] 27.69MB/27.69MB
fc62225e7890: Pushing [==================================================>] 7.168kB
75960f7ec704: Pushing [==================================================>] 5.12kB
4a4c3fe4d6e7: Pushing [==================================================>] 2.56kB
c4484f227d5e: Pushing [==================================================>] 4.608kB
2ee294939e65: Waiting
87a8a3a2ab9c: Waiting
1f00ff201478: Waiting
unknown blob
解决方案:
添加 Nginx 配置
proxy_redirect http:// https://;