进入容器 docker exec -it 容器id或者容器名称 /bin/bash 找到my.conf 添加 sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION 重启容器