ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Harbor正确密码登录不上去

Harbor正确密码登录不上去

Linux操作系统 作者:strivechao 时间:2022-07-26 09:49:22 0 删除 编辑

Harbor正确密码登录不上去

[root@hub harbor]# docker ps

找到harbor-db


 docker exec -it 3336e340e8b5 /bin/bash

 psql -h postgresql -d postgres -U postgres

root123


postgres=# \c registry                               

You are now connected to database "registry" as user "postgres".

registry=# select * from harbor_user;

 

registry=# update harbor_user set password='a71a7d0df981a61cbb53a97ed8d78f3e', 

salt='ah3fdh5b7yxepalg9z45bu8zb36sszmr', 

password_version='sha1' where username='admin';

UPDATE 1


registry=# 

registry=# \q

postgres [ / ]$ exit

exit

[root@hub harbor]# docker restart harbor-core

harbor-core


Harbor登录时提示 “核心功能无法使用”

 


原因:assword_version加密版本错了,重置密码并将sha256改成sha1

再次输入账户admin,密码Harbor12345,登录成功


重启:

1、定位到harbor的位置,如/var/www/harbor

2、停止命令

docker-compose stop

3、启动命令

docker-compose up -d


7、配置开机自启:

vim /etc/rc.local
/usr/local/bin/docker-compose -f /usr/local/harbor/docker-compose.yml up -d


docker-compose 加速站

http://get.daocloud.io/#install-compose


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25469263/viewspace-2907247/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: CentOS 8 升级内核
请登录后发表评论 登录
全部评论

注册时间:2018-06-21

  • 博文量
    108
  • 访问量
    338926