2023-04-20T09:37:19.129998Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2023-04-20T09:37:19.130001Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2023-04-20T09:37:19.130062Z 0 [ERROR] [MY-010119] [Server] Aborting
该报错是因为在执行 docker run的时候,宿主机所挂在的目录必须是空的。