wav3front
To correctly display the current version of MariaDB, use one of the following commands:
docker exec -it mariadb mariadb --version
or
docker exec -it mariadb mysql -V
If you run the command directly on the host, it will show the MySQL client version (8.0.40), which is installed on your Ubuntu host. This is separate from the MariaDB server running in the Docker container.