In Docker container erpnext-python bench mariadb only return how many records affected, not real result

After followed the official docker installation steps, then

docker exec -it yy_erpnext-python_1 bash

bench --site xxx mariadb

bench console works perfectly.

Anyone can help to make the bench mariadb works in container also?



docker exec -it yy_erpnext-python_1 bench --site xxx mariadb

or just exec into mysql container directly with root access.

same as exec in container

works, but need to first connect to the target database which is tedious somehow.

Anyway, thanks for your quick help.