文章

harbor进行push时提示unauthorized: unauthorized to access repository

首先确认是否正确登陆harbor的仓库

docker login domain

确认已正确登陆,则多半是因为nginx做反向代理时配置的问题,将nginx配置文件里

proxy_set_header X-Forwarded-Proto $thescheme;

修改为

proxy_set_header X-Forwarded-Proto https;

确保都走https转发。

License:  CC BY 4.0