Mysql 5.7.44 部署异常--initialize specified but the data directory has files in it. Aborting.

说明(发布前可手动删除说明内容):

循环提示错误,多次删除和构建都相同
2024-06-07 08:46:55+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.44-1.el7 started.
e[2Kmysql5.7 | 2024-06-07 08:46:55+08:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
e[2Kmysql5.7 | 2024-06-07 08:46:55+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.44-1.el7 started.
e[2Kmysql5.7 | 2024-06-07 08:46:55+08:00 [Note] [Entrypoint]: Initializing database files
e[2Kmysql5.7 | 2024-06-07T00:46:55.848869Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
e[2Kmysql5.7 | 2024-06-07T00:46:55.848960Z 0 [ERROR] Aborting

什么操作系统和架构

X 86 架构,
龙晰8 的系统

可能跟操作系统有关 这个操作系统我们没有适配过

通过在线安装,docker的版 26.1.3,

NAME=“Anolis OS”
VERSION=“8.9”
ID=“anolis”
ID_LIKE=“rhel fedora centos”
VERSION_ID=“8.9”
PLATFORM_ID=“platform:an8”
PRETTY_NAME=“Anolis OS 8.9”
ANSI_COLOR=“0;31”
HOME_URL=“https://openanolis.cn/


这个用户是自动创建的吗?与其他目录的用户不同

是的 应用自动创建的