below there are amd64 (intel cpu) and arm64 (apple silicon) images, use the command for your CPU
docker run -d -p 3306:3306 --name mariadb-pwd -e MYSQL_ROOT_PASSWORD=i-am-root -e MYSQL_USER=db-user -e MYSQL_PASSWORD=db-pass mariadb:latest
docker run -d -p 3306:3306 --name mariadb-pwd -e MYSQL_ROOT_PASSWORD=i-am-root -e MYSQL_USER=db-user -e MYSQL_PASSWORD=db-pass arm64v8/mariadb:latest