docker-compose用旧的文件夹和数据库启动新的容器出现问题


#1

我是在windows平台上用docker desktop来部署的docker版seafile, 由于docker desktop可以用wsl2来作为docker的后端而不是之前的hyper-v, 我便做了升级, 所以要重新创建容器, 虚拟卷用之前正常工作的卷.
docker-compose up命令后一切正常, 但是发现登不了录, 查日志, 如下有如下数据库方面的错误:
1, 我用的image是latest, 之前是7.0.5, 所以自动成了7.1.4, 触发了一次"小升级"


2, .frm文件相关的错误

 [Warning] InnoDB: Cannot open table seafile_db/systeminfo from the internal data dictionary of InnoDB though the .frm file for the table exists.
 [Warning] InnoDB: Cannot open table seafile_db/branch from the internal data dictionary of InnoDB though the .frm file for the table exists.
 [Warning] InnoDB: Cannot open table ccnet_db/emailuser from the internal data dictionary of InnoDB though the .frm file for the table exists.

3, 我登录到mysql命令行, 手动查表, 能查到表, 但提示不在数据引擎中

MariaDB [ccnet_db]> show tables;
±-------------------+
| Tables_in_ccnet_db |
±-------------------+
| Binding |
| EmailUser |
| Group |
| GroupDNPair |
| GroupStructure |
| GroupUser |
| LDAPConfig |
| LDAPUsers |
| OrgGroup |
| OrgUser |
| Organization |
| UserRole |
±-------------------+
12 rows in set (0.02 sec)

MariaDB [ccnet_db]> select * from EmailUser;
ERROR 1932 (42S02): Table 'ccnet_db.emailuser' doesn't exist in engine
MariaDB [ccnet_db]> select * from Binding;
ERROR 1932 (42S02): Table 'ccnet_db.binding' doesn't exist in engine

几乎都是table exists类的问题
请问怎么解决?

或者其实是7.0.5升7.1.4导致的问题?