An easy way to test your backup is creating a new instance :
docker run -d --rm --name mariadb-test --env MARIADB_ROOT_PASSWORD=root-pw \
--env MARIADB_USER=user1 --env MARIADB_PASSWORD=passwd1 -p 3306:3306 mariadb
Restore your backup:
docker e...