Problem scenario
In an Ubuntu-based Docker container, how do you install MariaDB and start the MariaDB service?
Solution
Run these commands:
sudo apt-get -y update
sudo apt-get -y install vim
sudo apt-get install mariadb-server
sudo service mysql start