Rancher入门到精通-Harbor镜像push特别慢重启后密码失效

一、进入db容器

docker exec -it harbor-db /bin/bash

二、登陆数据库

1、手动输入密码登陆(root123)

如何查询自己的密码

harbor 目录下 cat common/config/db/env

psql -h postgresql -d postgres -U postgres

\l 查询数据库列表

扫描二维码关注公众号,回复: 12291735 查看本文章

\c postgres 切换数据库

现在开始修改harbor密码

复制代码

docker exec -it  b07b3206fea5  /bin/bash

psql (9.6.14)
Type "help" for help.

postgres=# help
You are using psql, the command-line interface to PostgreSQL.
Type: \

猜你喜欢

转载自blog.csdn.net/wxb880114/article/details/110938903