Creating a database instance in Docker
Pull a MariaDB Docker image:
Start a container and specify a root password:
docker run -d --name my-db -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 mariadb
Connect to MariaDB console inside container:
docker exec -it my-db mysql -p
Home