Import MySQL dump into MariaDB inside Docker Container
Mount the sqldump file in docker as volume,
e.g.: ./dump.sql:/dump.sql
lonewanderer@debian:~docker exec -it [container_id] bin/bash
In the container run:
root@8a50ffd007da:/mariadb -u root -p
Enter your password.
Create a database via CREATE DATABASE db_name;
Switch to the new db: USE db_name;
Import the sql file: source /dump.sql