The MariaDB project changed the location of the repositories, and the
old URLs no longer work.
Fix added for stable branches: Wrap version detection for docker module
since it can fail for docker >= 6.0.
Additionally, for Victoria, this disables the monasca-grafana building
on CentOS.
Closes-Bug: #1988121
Change-Id: Ia094cd1e29232c47d1fb26e00de569677bc5b8a1
(cherry picked from commit 94fad9f26b)
(cherry picked from commit b3e7221085)