I had a typo in a file:
[Entrypoint] running /docker-entrypoint-initdb.d/5.configure-users.sql
ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"' at line 1
[Entrypoint] running /docker-entrypoint-initdb.d/tram-saga-schema.sql
The server (mysql/mysql-server:8.0.27-1.2.6-server) ignored the error and executed the next file.
It would be helpful if the such an error resulted in the server shutting down.