好巧不巧,我的数据库名称叫postgres,而archery正好过滤掉这个数据库了
所以解决方式如下:
第一步:进入archery用户
docker exec -it archery bash
第二步:打开pgsql.py
vi /opt/archery/sql/engines/pgsql.py
第三步:找到这段代码:
if row[0] not in ["postgres","template0", "template1"]
第四步:将这段代码中的postgres删除
if row[0] not in ["template0", "template1"]
第五步:退出archery用户
exit
第六步:重启archery
docker exec -it archery bash