Press "Enter" to skip to content

harbor登录报错unauthorized: authentication required

harbor登录报错:unauthorized: authentication required

账号密码网页端都能登录,控制台登录报错。

(base) [root@localhost core]# docker login harbor.xiaocaicai.com
Authenticating with existing credentials...
Stored credentials invalid or expired
Username (admin): admin
Password: 
Error response from daemon: Get https://harbor.xiaocaicai.com/v2/: unauthorized: authentication required

检查harbor配置文件:harbor.yml

查看:external_url: https://harbor.xiaocaicai.com 这个配置是否正确配置。

配置完成后,重新构建配置

[root@code harbor]# ./prepare

重启harbor服务

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注