docker安装方式失效了吗

今天试了最新的docker-compose.yml 和之前的,发现都会报mysql的错误

2023-08-30 14:41:10 2023-08-30 6:41:10 0 [ERROR] InnoDB: The Auto-extending innodb_system data file ‘./ibdata1’ is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
2023-08-30 14:41:10 2023-08-30 6:41:10 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2023-08-30 14:41:11 2023-08-30 6:41:11 0 [ERROR] Plugin ‘InnoDB’ init function returned error.
2023-08-30 14:41:11 2023-08-30 6:41:11 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2023-08-30 14:41:11 2023-08-30 6:41:11 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2023-08-30 14:41:11 2023-08-30 6:41:11 0 [ERROR] Aborting
2023-08-30 14:41:09 2023-08-30 06:41:09+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.13+maria~focal started.
2023-08-30 14:41:09 2023-08-30 06:41:09+00:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
2023-08-30 14:41:09 2023-08-30 06:41:09+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.13+maria~focal started.
2023-08-30 14:41:10 2023-08-30 06:41:10+00:00 [Note] [Entrypoint]: Initializing database files
2023-08-30 14:41:11
2023-08-30 14:41:11 Installation of system tables failed! Examine the logs in
2023-08-30 14:41:11 /var/lib/mysql/ for more information.
2023-08-30 14:41:11
2023-08-30 14:41:11 The problem could be conflicting information in an external
2023-08-30 14:41:11 my.cnf files. You can ignore these by doing:
2023-08-30 14:41:11
2023-08-30 14:41:11 shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
2023-08-30 14:41:11
2023-08-30 14:41:11 You can also try to start the mysqld daemon with:
2023-08-30 14:41:11
2023-08-30 14:41:11 shell> /usr/sbin/mysqld --skip-grant-tables --general-log &
2023-08-30 14:41:11
2023-08-30 14:41:11 and use the command line tool /usr/bin/mysql
2023-08-30 14:41:11 to connect to the mysql database and look at the grant tables:
2023-08-30 14:41:11
2023-08-30 14:41:11 shell> /usr/bin/mysql -u root mysql
2023-08-30 14:41:11 mysql> show tables;
2023-08-30 14:41:11
2023-08-30 14:41:11 Try ‘mysqld --help’ if you have problems with paths. Using
2023-08-30 14:41:11 --general-log gives you a log in /var/lib/mysql/ that may be helpful.
2023-08-30 14:41:11
2023-08-30 14:41:11 The latest information about mysql_install_db is available at
2023-08-30 14:41:11 Installing System Tables (mariadb-install-db) - MariaDB Knowledge Base
2023-08-30 14:41:11 You can find the latest source at https://downloads.mariadb.org and
2023-08-30 14:41:11 the maria-discuss email list at Maria Discuss in Launchpad
2023-08-30 14:41:11
2023-08-30 14:41:11 Please check all of the above before submitting a bug report
2023-08-30 14:41:11 at https://mariadb.org/jira

是不是环境的问题,什么系统?

windows, 之前安装的时候很正常,我回家安装也是可以的,在公司就不行

同樣用Windows docker安裝
安裝時正常,重開機後就不正常,原因也搞不清楚
最後找到一個辦法,用工作排程器在開機時延遲一分鐘把容器刪除掉
然後重建容器 (資料不動) 就能正常使用
工作排程器在開機後延遲一分鐘執行的命令如下

docker rm -f seafile
docker-compose up -d

不建议Windows