Have a look for /etc/egroupware-docker/mysql.sh
, you can copy it to all mysql commands, eg. mysqldump and use it like the command. It reads the root credentials from /etc/egroupware-docker/.env.
If you want to use MariaDB tools from the host, you need to tell docker to bind it to port 3306 on localhost.
Ralf